isRowHidden?

Hi~~



Total and average (by func. on dhtmlxgrid_filter.js) should be calculated again when rows is hidden or shown.



But, there isn’t isRowHidden function.



if(cell.style.display==none) doesn’t work…



_in_header_stat_average function calculates the values including the hidden rows.



How can I know whether if the row’ is hidden?



Plz give me good idea~…



thks…


>>Total and average (by func. on dhtmlxgrid_filter.js) should be calculated again when rows is hidden or shown.


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 total and average you can implement custom autocalculated values


>>But, there isn’t isRowHidden function.
if(cell.style.display==none) doesn’t work…


To hide row:


mygrid.setRowHidden(id, state) where id - row ID, state - true/false. Note that this command doesn’t affect row indexes, only visual appearance


To check if row is hidden:


grid.getRowById(id).style.display==“none”