Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by chris on Oct 22, 2009 12:46
open dhtmlx forum
how can you clear the value of a #text_filter in a grid

I have a grid that is opened in a popup (a DIV tag) multiple times. The third column in the grid has a #text_filter in it from a attachHeader call for the grid.

If the user types values into the #text_filter the first time the grid id displayed, I would want to remove the value in the #text_filter the second time the grid is displayed.

Can that be done?
Answer posted by Stanislav (support) on Oct 23, 2009 02:52
You can use 
       grid.getFilterElement(2).value = "";

getFilterElement returns reference to the related input element. 
Answer posted by thank you on Oct 27, 2009 07:19