Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by parvathy on Sep 11, 2008 03:21
open dhtmlx forum
how to clear the filter on grid reload

how can i clear the filter on reload of the grid. could you also tell me if there is a command for the hiding the filters.
thanks in advance
Answer posted by Support on Sep 11, 2008 04:14
There are no special API for acessing filters elements. 
If you are using select or text filters, the next code will work

 for (var i=0; i<grid.filters; i++)
    grid.filters[i].value="";

>>if there is a command for the hiding the filters.
there are no such API also, but you can hide all row in header, where filter placed by 
   grid.hdr.rows[2].style.display="none";
2 - row index in header