Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by withzestmn on Mar 30, 2009 15:25
open dhtmlx forum
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..

 

Answer posted by dhxSupport on Mar 31, 2009 06:47
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 http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_stat_counters.html#grid_art_custstat