View Full Version : Disable/Enable cells on Ext.grid.Panel and cellediting

29 Nov 2018, 2:03 AM

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:

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?

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?


3 Dec 2018, 7:10 PM
Hi there- I have shared this issue with the support team and asked that they reach out to you to provide some assistance. Your patience is greatly appreciated!