Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Damo on Aug 28, 2008 06:18
open dhtmlx forum
treeGrid calculated footer

I am using treegrid pro 1.6.

I need to calculate the sum of all values of a column but using only the values of the first level rows. I found #stat_tree_total_leaf for the last level..., do you have something for the first level?

Thanks Damian
Answer posted by Support on Aug 28, 2008 06:27
There is no such built-in fucntion, but it pretty easy to adjust existing one. 
dhtmlxtreegrid_filter.js , line 158
     if (el.childs.length) return;
can be changed to the 
     if (el.level!=LEVEL) return;

where LEVEL  - int value of level , for which calculation must be done