Categories | Question details Back To List | ||
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 <div> 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? Answer posted by dhxSupport on May 07, 2009 05:36 To refresh filters you can use method refreshFilters(), filter refreshes lists of values in all the filters created by shortcuts or by makeFilter() calls. <input id="text-filter" /> document.getElementById("text-filter").value=""; <select id="select-filter">...</select> ... document.getElementById("select-filter").selectedIndex="-1"; Answer posted by SFGolfer on May 07, 2009 06:40 Thank you. mygrid.resetFilters() is what I was looking for. |