Dhtmlx tree grid sum rows on demand

Is there a way to sum rows of tree grid on demand like on click of a button on any node having child.

Please, try to call the following line to force the math calculations:
//Forced invoking calculation in the grid
mygrid.callEvent(“onGridReconstructed”,[]);