Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stewart Loving-Gibbard on Sep 02, 2009 10:48
open dhtmlx forum
How to check for presence of filters?

Is it possible to check for the presence of non-blank filters on a DHTMLX Grid?

Also, is there a simple way to clear them, besides using grid.getFilterElement?

Thank you!
Answer posted by dhxSupport on Sep 03, 2009 00:57
>>Is it possible to check for the presence of non-blank filters on a DHTMLX Grid
You can do the following:
var filter=grid.getFilterElement(index);
filter.value="some_value"

>>Also, is there a simple way to clear them, besides using grid.getFilterElement
filter - is a reference to the filter html object. So you can use any available DOM API methods for it