Here is a code snippet example:
Ext.create("Ext.tree.Panel", {
renderTo: $(".gsBasciInfo")[0],
store: "basic_grid_store",
useArrows: true,
rootVisible: false,
columns: {
items: [{
text: 'id',
dataIndex: 'id',
align: "right",
}, {
xtype: 'actioncolumn',
items: [{
xtype: 'button',
iconCls: 'icon-edit',
tooltip: 'Edit',
handler: function(view, rowIndex, colIndex, item, e, record) {
item.disable();
//do something in the background
item.enable();
}
}]
}]
}
});
If I have a grid panel like the one above, I want to disable only the clicked button and run some background process before enabling it again.
The current approach disables the entire column of buttons, which is not intended. What should I do to achieve my desired functionality? Thank you!