Skip to content
Snippets Groups Projects
Commit 020011e8 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Use the method grid.reset.

parent 9651e43e
No related branches found
No related tags found
No related merge requests found
......@@ -43,21 +43,11 @@ App.grid.ExpertMenu = Ext.extend(Object, {
},
/**
* Handler to reset filter and to reload the underlying data store
* Handler to reset grid, its filters and its paging options
*/
onReset: function () {
var grid = this,
store = this.getStore();
// remove gridFilter conditions
delete store.baseParams.where;
// send the clear signal in order to reset gridFilter
store.fireEvent('clear');
// load the store with fresh data
store.load();
var grid = this;
grid.reset();
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment