I just started using dojo and just started to play around with it. Basically what I want do is that I have a table which has 2 columns A and B. The cells in Column B will either be locked or editable depending on the value of column A.
Is there a way to set the editable property at cell level and not on the column level as defined in the layout?
I tried using the formatter but can’t get it to work properly.
You can override the grid function
onCellDblClick– but this is version-specific code. If the dojo.version changes in your page, the grid Event.js may have other behaviors. The following snippet is taken from … /dojox/grid/_Event.js from version 1.7.2.If your editing is set to fire via doubleclicking a cell (default behavior), you may choose to simply ignore it with a well placed
returnin the following:So whilst initializing your grid, set the config parameter
onCellDblClickto the above function:or