PDA

View Full Version : [CLOSED] Grid Panel - Conditional Editing



adelaney
Sep 16, 2012, 6:24 AM
I have a grid where the availability to edit a cell is based on a flag in the store. If possible, how can I turn on and off the cell-editing plug in based on a store value? Is there anything I can do during the setup of the grid or is this something only at the client? If it makes any difference, I am using MVC/Razor.

Daniil
Sep 17, 2012, 7:03 AM
Hi,

It should be done client side by returning false from a CellEditing BeforeEdit listener or setting e.cancel to true.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.plugin.CellEditing-event-beforeedit