Open capaaway opened 8 years ago
You can add a new function let's say clearFilter to editablegrid.js with the following code
EditableGrid.prototype.clearFilter = function(){
this.localset('filter',''); //clears the localstorage entry
this.currentFilter='';
}
Then where you reload the page, you can put
window.onload = function() {
editableGrid.onloadJSON('some-data.json');
editableGrid.clearFilter();
};
I just called this functiion prior to calling editableGrid.renderGrid( ... editableGrid.filter("");
Hi all, I would want to reset filter box when i refresh page , because automatically the browser mainain last value that I've inserted: is it possible? Thanks Fabio