Categories | Question details Back To List | ||
#master_checkbox and filtering Im working with #select_filter, #text_filter and #master_checkbox simultaneously, everithing works fine, but when somebody filters data and use the master checkbox the whole grid is checked, including hidden rows. Is there any way to know wich row is hidden? a isRowHidden() function or something like taht? Im trying with mygrid.getRowById(id).style.display != 'none' but is not working. Please help me I dont know what to do. Answer posted by dhxSupport on Mar 18, 2009 09:13 This is expected behavior of master_checkbox.To fix it you should change master_checkbox logic or implement custom checkbox in the header. How to do it you can find here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_content_in_header.htm#grid_ccingrid. To set row hidden you can use method setRowHidden(id, state) where ind - column index, state - true/false - hide/show row. This command doesn't affect row indexes, only visual appearance Unfortunately dhtmlxGrid has method which allow you to check if row hidden or not. By the way the fastest way to implement filtering in the grid is to use filterBy() method. Please see more information here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Data_filtering_search.html#grid_fsing |