Reset grid filters

Pro v2.1



I have several filters in the header’s second row.



I also have a “reset filters” button that is outside of the gridbox

and the button is set to onclick=“mygrid.filterBy(0,”");".



The grid does reset as far as the data being displayed but the filter textboxes and combo boxes have the data the user typed/selected.



Possible to reset these input elements to empty without having to reload/refresh the page?


To refresh filters you can use method refreshFilters(), filter refreshes lists of values in all the filters created by shortcuts or by makeFilter() calls.
If you have created custom filters you can refresh them via DOM:








document.getElementById(“text-filter”).value="";








document.getElementById(“select-filter”).selectedIndex="-1";


Thank you.



mygrid.resetFilters() is what I was looking for.