Categories | Question details Back To List | ||
non editable dyn cell type how to make dyn cell type non editable ??? Answer posted by Support on May 07, 2008 10:28 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. mygrid.attachEvent("onEditCell",function(stage,id,ind){ if (ind==INDEX) return false; return true; } where INDEX - index of column for which edit operation must be blocked In case of dhtmlxTreeGrid you can disable editing for tree cells only by using grid.enableTreeCellEdit(false); |