Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Aatish on Mar 21, 2008 12:44
open dhtmlx forum
Diable editing a cell for a grouped cell

I am using treegrid. I have a cell with its type set to price[=sum]. I want to disable the editing of this cell. I also want to know how to display a blank in one of the parent grouping for the same cell. Currently it displays a $ if there is no value.
Answer posted by Support on Mar 24, 2008 03:06
>>I want to disable the editing of this cell.
You can disable edit operations for all math based cells by
    grid.enableMathEditing(false);
If you need to disable some specific cell only
    grid.cells(i,j).setDisabled(true);

>>it displays a $ if there is no value.
This is the default logic of price excell it can be adjusted only by code modification in dhtmlxgridcell.js ( eXcell_price.prototype.setValue )