Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by lalit on Jun 23, 2009 00:41
open dhtmlx forum
dhtmlxgrid combobox filtering

i have created on grid as :

me.mygrid.setImagePath("../dhtmlx/dhtmlxGrid/codebase/imgs/");
me.mygrid.setHeader("IPAddress,NodeName,Time,Description");
me.mygrid.setColAlign("center,center,center,left");
me.mygrid.attachHeader("#combo_filter,#combo_filter,#combo_filter,#combo_filter");
me.mygrid.setInitWidths("130,130,130,400");
me.mygrid.setColTypes("ro,ro,ro,ro");
me.mygrid.setColSorting("str,,str,str,str");
me.mygrid.setSkin("light");
me.mygrid.init();

my questions are :
1) in column IPAddress , there are values (10.11.11.11, 10.11.11.1, 10.11.11.10, 10.11.11.2 i.e.) . I filters on IPAddress by selecting 10.11.11.1, result show all values starting with 10.11.11.1 (i.e. 10.11.11.11, 10.11.11.1, 10.11.11.10 ). how can i restrict the result to exactly match with 10.11.11.1.
2) if I filter on one column (i.e. ipaddress 10.11.11.2) , i want in other columns' combo box should show only values which are in resultant filtered grid. but it shows the previous options also (some values are not in any grid rows, still it is showing by combo box filter).
Answer posted by dhxSupport on Jun 23, 2009 03:51
1) You can use #select_filter_strict wich will filter grid in the necessary way
2) Unfortunately there is no such inbuild functionality. You can customize filtering by adding custom <select> to the header. Please see more information here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_content_in_header.htm#grid_ccingrid