Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by jp on Oct 24, 2007 10:46
open dhtmlx forum
Sum treegrid

Hi,

I have a treegrid and i'm using ed[=sum] in the col type definition. The problem is that i only need this summatory in the 4th level of the treegrid, so i tried to use <cell>=sum<cell> in the xml with no success. Is there a way to do this??

Thanks in advance
Answer posted on Oct 25, 2007 02:02
This must work, but you still need to define column as math enabled, so you can use something similar to next

grid.setColTypes("tree,ro[=]");

such definition creates second column as "ro" but with ability to understand math formulas , after that you can set
    <cell>=sum<cell>
for necessary cells only