Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Florante Kho on Jun 07, 2009 10:39
open dhtmlx forum
Grid filtering

Hi,

I have several filters on my grid. When I select on any of it, I want to update each select option to only contain relevant value as a result to prior filtering. Is this possible?

Thanks

Florante

Answer posted by dhxSupport on Jun 08, 2009 01:51

Since dhtmlxGrid version 2.1 you can access to the filter object using method getFilterElement(index) index -  index of column. In other way you can paster custom filters to the header and attach necessary event to them. Please see more inforamtion here http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Headers_and_footers.html#grid_art_hdrftr

http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_content_in_header.htm#grid_ccingrid

Answer posted by Support on Jun 08, 2009 01:52
You can use code similar to next 
      grid.attachEvent("onFilterEnd",function(){
            grid.refreshFilters();
            return true;
      })