Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Anthony Nahas on Sep 02, 2009 14:24
open dhtmlx forum
select_filter successive filtering?

Is there a way to have successive filtering on select_filters, similar to how it is done in Excel?

For instance, if I filter the contents of the grid, the filters would be updated so that they are only valid for what the user can currently see in the grid.

Is there a way to do that or is that something I would have to write custom code for (loop through contents of grid and update select filter values appropriately)? It would be a really useful feature for grids with a lot of data.
Answer posted by dhxSupport on Sep 03, 2009 00:54
>>Is there a way to do that or is that something I would have to write custom code for (loop through contents of grid and update select filter values appropriately)
Unfortunately there is no such inbuild functionality but you can create any custom filter you need. Please find more information here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Data_filtering_search.html#grid_fsing.
To get instance of the filter object you can use getFilterElement(index) method where index - index of column.