Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Scott Dean on May 02, 2007 12:14
open dhtmlx forum
Prevent cell edit

How I can temporary prevent editing in grid ?
Answer posted on May 05, 2007 10:24
You can disable editing for whole grid
grid.setEditable(false);
for specified row
grid.lockRow(rowID, true);
for specified cell
grid.cells(rowId,cellInd).setDisabled(true);

Also more complex schemes can be applied by defining the onEdit event
handler which fires on each edit attempt, and returning false from which,
block edit operation.

In case of dhtmlxTreeGrid you can disable editing for tree cells only
bye using
grid.enableTreeCellEdit(false);

Answer posted by Darya (Support) on Dec 08, 2014 12:59

I hope this information will be enough for you. But you also can have a look at free javascript event calendar and javascript tabs example.