Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by James Snyder on May 08, 2009 12:35
open dhtmlx forum
Count of Footer rows?

Is there a function or a way to count the number of rows in a footer?

We are adding 3 or 4 rows, depending on a specific situation using the "attachFooter" section. However the footer needs to be recalculated (often!) and there is a need to remove rows. The easiest way that I can think of is to get a count and us the "detachFooter" function. However it's impossible to quess the number of rows. I could keep a variable count if there is no other way. Please let me know.

Thanks,
James
Answer posted by Support on May 11, 2009 03:03
There is no API method , but you can use
          mygrid.ftr.rows.length 

>> needs to be recalculated 
There is a way to create custom counters in footer, it may be an alternative solution
http://dhtmlx.com/docs/products/dhtmlxGrid/samples/filtering/pro_filter_num.html?un=1242037215000
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_stat_counters.html#grid_art_custstat