Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Plamen on Jun 10, 2009 01:41
open dhtmlx forum
reset grid filters

Hi,

I am intrested in a previous posting:

http://www.dhtmlx.com/docs/products/kb/index.php?s=normal&q=9391&a=14987">http://www.dhtmlx.com/docs/products/kb/index.php?s=normal&q=9391&a=14987

I don't think there is an answer to the original question: How to reset to empty the selected values/typed text in the filters (#select_filter, #text_filter, etc.) after issuing mygrid.filterBy(0, ""); ?

Regards,

Plamen

Answer posted by dhxSupport on Jun 10, 2009 03:59
To reset to value of the filter you should use:
          var filterObject=mygrid.getFilterElement(COLUMN_INDEX);
          filterObject.value=""; <== reset filter's value to empty