PDA

View Full Version : Conditional CellEditing in Grid ExtJS 4



prashantsharma
24 Jul 2013, 12:18 AM
I have a grid and i want to edit its cell based on condition. In first row i want to make one cell non-editable and from second row i want to make another cell non-editable.

slemmon
25 Jul 2013, 10:24 PM
You can set a listener in the cellediting pluging for beforeedit
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.plugin.CellEditing-event-beforeedit

In that listener you can test for your conditions and if you don't want the editor to show you can return false from the listener.