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

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