I have a requirement to disable the cell edit if the value of the cell is 0.This i have to do on the following scenarios
a) Load of the grid
b) Adding a new row
c) Edit a row.
you can add next code to grid’s init
grid.attachEvent(“onEditCell”,function(stage,id,ind){
if ( stage == 0 && this.cells(id,ind).getValue()===“0” ) return false;
return true;
});
I mean that cell should be disabled.but this code stilll makes users to edit the cell.So please help me on this
The code above disable edit for cells, their value are equal to 0.
Please check attached sample.
1217235986.zip (84.6 KB)