Hello,
Here comes again the question how to enable/disable a cell inside a Ext.grid.Panel and cellediting...
I see that many forum threads were opened with this question, but I found no valid example/mechanism for ExtJS 4.2
Lets consider the following panel:
Code:
Ext.create('Ext.grid.Panel', {
title: 'Cell editor',
store: store,
columns: [ {
text: 'Jan',
dataIndex: 'Jan',
width: 50,
editor: {
xtype: 'numberfield',
disabled: true, //Only on creating this panel I see this option of disable/enable!!!
allowBlank: false
}
}, {
text: 'Feb',
dataIndex: 'Feb',
width: 50,
editor: {
xtype: 'numberfield',
allowBlank: true
}
}]
}
As you can see, there is the disable property, but I need to set the enable/disable dynamically, based on some configurations and not on column level (some cells from a column can be enabled others can be disabled)!
It's possible on a panel listener to manipulate the panel cell such that those cells are disable/enable?
Code:
listeners : {
afterrender: function (panel) {
// I need here to update the cells such that some are enabled/disabled, based on config....
// ??????
}
}
Or, the listener is not option, are there other ways to enable/disable cells?
Regards,
Alex