I have have a column with the results of the search, but i need to show some informations added inside the result after i click in a button, but how i can do it? I need to create a button to show, someone can help me?
tks. Rodrigo.
You can use an action column for this:
{
xtype:'actioncolumn',
width:50,
items: [{
icon: 'extjs-build/examples/shared/icons/fam/cog_edit.png', // Use a URL in the icon config
tooltip: 'Edit',
handler: function(grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
alert("Edit " + rec.get('firstname'));
}
},{
icon: 'extjs-build/examples/restful/images/delete.png',
tooltip: 'Delete',
handler: function(grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
alert("Terminate " + rec.get('firstname'));
}
}]
}
I think what you're looking for is ActionColumn (not hard to find on Google btw ...) :
http://docs.sencha.com/extjs/4.2.3/#!/api/Ext.grid.column.Action
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.