Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by lalit gera on Nov 04, 2009 23:59
open dhtmlx forum
Grid problem

hi ,
I want to do filterBy on my grid, but it was not filtering strictly i.e. if my value is 10.120.120.1 then it will give results as 10.120.120.1, 10.120.120.10, 10.120.120.11 etc. How can i do strict filtering??
I also want to add a checkbox in my grid header . My requirement is to select/unselect all grid rows if header check box is selected/unselected  respectively.
thanks
lalit gera
Answer posted by Alex (support) on Nov 05, 2009 01:48

Hello,

here is the example of strict filtering:

grid.filterBy(COLUMN_INDEX,function(data){

    return data=="10.120.120.1";  

});

Grid provides master_checkbox filter that executes the described functionality:

http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/08_filtering/03_pro_filter_num.html