Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by swapna on Jun 25, 2008 22:23
open dhtmlx forum
[=sum] in TreeGrid is causing problem

Hi

In case of TreeGrid, Earlier when we were using version 1.5, our cells were editable.we used below code for 1.5 version-
mygrid.setColTypes("tree,txt,ed[=sum],ed[=sum],ed[=sum],ed[=sum],ro[=c2+c3+c4+c5]");

But in case of version1.6 , when we used the below code our cells are getting locked.We are not able to edit the cells.

mygrid.setColTypes("tree,txt,ed[=sum],ed,edn,edn[=sum],ron[=c2+c3+c4+c5]");
In the above case,
ed[=sum] is not editable.
ed is editable.
edn is editable.
edn[=sum] is not editable.
Also if we are changing firstcell type i.e, ed[=sum] to ed, then the cell is getting editable.So its not the issue with rowid.
In our case row id is unique.So we think there is some problem with [=sum].

Please consider this issue as urgent.
Thanks & Regards,
Swapna J
Answer posted by Support on Jun 26, 2008 04:51
In dhtmlxgrid 1.6 cell can't be editable if it value is a result of math formula
If you want to have some cells in math based column editable , you need to specify their type directly in XML

grid.setColTypes("edn[=sum]");
....
<row id="some">
    <cell type="edn">such cell will be editable</cell>