Categories | Question details Back To List | ||
Hidden Rows Is there a way to check to see if a row is or not hidden. I want to recalculate totals after filtering. I am totaling six columns any ideas? Answer posted by Stanislav on Sep 13, 2007 12:47 In case if row hidden by grid.setRowHidden you can check it directly through DOM as if ( grid.rowsAr[ID].style.display!='none' ) alert('visible'); Answer posted by Gaurav Arora on Feb 12, 2009 11:16 Hi, Just to comment on the above approach... I found this approach to be better than using setRowHidden API if you want to hide/show rows on and off on an event (e.g. check/uncheck a checkbox). setRowHidden(id,true) worked for me but I was not able to unhide the rows by calling setRowHidden(id,false). I then tried this approach and it worked as expected for me. I would also say that this approach hides/unhides the rows faster. Gaurav Answer posted by Support on Feb 13, 2009 10:21 >> I would also say that this approach hides/unhides the rows faster. Its definitely faster, because not trigger size updates logic. But beware - if you are using auto-height mode - grid will not react on row hiding in such case. |