Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Alex Eles on May 03, 2007 12:29
open dhtmlx forum
Temporary block edit operations

Is it possible to block edit operations for all grid ( some kind of readonly mode ) ?
Answer posted on May 05, 2007 10:54
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 radyno (Support) on Dec 09, 2014 17:19

I hope this information will be enough for you. But you also can have a look at wysiwyg javascript and rich web interface.