Filter date between date from and date to

Dear all,



Is it also possible to filter a “date” field

With two textboxes.

“Date from” and “date to”



So the return value are the date’s between the two values of the textboxes.



Thanks in advanced.



Yours,



Nico

You can define custom filtering function

var data_from=document…
var data_to=document…

grid.filterBy(index,function(val){
    if (val>data_from && val<data_to) return true;
    return false;
};

Where do you make this custom function? Is there a working sample of this available?

There is no online sample of date filtering, but the usage of function as parameter of filterBy can be checked at
    dhtmlx.com/docs/products/dhtmlxG … 8181743000

The second parameter of filterBy command may be a value , or function which will be called against all values in related column.