Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sanju Thomas on Dec 10, 2009 03:57
open dhtmlx forum
how do I clear filter text in grid.

How do I clear the text in the text filter of a grid ? I am using version 1.6

solution given in the doc ['getFilterElement(0).value="" ] is available in version >=2.1

Answer posted by dhxSupport on Dec 10, 2009 07:42
You can get reference to the filter input directly with DOM:
grid.hdr.getElementsByTagName("INPUT")[0].value="";