Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Scott Bailey on Nov 17, 2008 01:56
open dhtmlx forum
Get Filter Values

Hello,

Is there any way that you can get the values of all current filters. The situation I have is that we have a tabbar. One the first tabbar is the grid and on another tab os a report which is dynmically generated from the resulting grid. .i.e the report will be based on only the rows that result from any filter applied. This all works fine.

However, I would like to put a header on the rport that state which columns have been fileted and what the value of those filters is? I can't see anything in the documentation that covers this. Is this possible?

Many thanks
Scott Bailey
Answer posted by Support on Nov 17, 2008 03:56
You can use onFilterStart event, it will fire, each time when values in filtering inputs were changed

var states=[];
mygrid.attachEvent("onFilterStart",function(c,v){
    states=v; //array of filter values
    return true;
});