Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Agile on Oct 31, 2008 22:06
open dhtmlx forum
filterBy

Hi Team,

How to use filterBy for various conditions?

I am using
mygrid.filterBy(0,function(a){ return (a < 250); });


< 250 is coming as a variable there may be other values like > 250, =250,250 etc.

So how to do it?

Thanks,

-Regards
Answer posted by Support on Nov 03, 2008 01:16
Filtering handler should return true for values you want to be shown and false in the other case.

So, you can check different conditions inside this function:

grid.filterBy(column_index,your_func);

function your_func(value,row_id){

....

}