Prevent cell edit

How I can temporary prevent editing in grid ?

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);