tags:

views:

39

answers:

2

in my editorGrid i have one column with dateField editor , when the grid is rendred i set that field to non editable :

myColModel.setEditable(colIdex,false)

it will be editable after the value changed in other cell in the same row

myColModel.setEditable(colIdex,true)

the probleme is : all the cells in the column are editables

how can i do to make only the cell in the selected row editable

and many thanks

+1  A: 

Use the 'beforeedit' listener on the EditorGrid - you can inspect the field they are trying to edit. If the other field isn't set, return false to not allow them to edit that field.

sdavids
A: 

You can do it other way by just overriding the isCellEditable function. Check the below link.

http://www.sencha.com/learn/Ext_FAQ_Grid#Disable_editing_of_particular_rows.2C_columns.2C_etc