stat_total,stat_average after setRowHidden()


Hi,



I can hidden a row by option.
So, I use setRowHidden() func.



And, I use #stat_total and #stat_average on header.



I want to recalclate total and average after setRowHIdden() call.



So, I call  mygrid.callEvent(“onGridReconstructed”,[]); 



But, It doesn’t work.

I want to use _in_header_stat_average() in dhtmlxgrid_filter.js file.

What should I do to call this func?



Hep me plz…



 

Hidden/unhidden state of the row doesn’t impact to the filters “stat_total” and “stat_average” as if row is hidden it still present in grid structure. To recalculate tatal and average you can implement custom autocalculated values. Please see more information here dhtmlx.com/docs/products/dhtmlxG … t_custstat