on settting the filters keep track of names:
PHP Code:
onFilterUpdateRender: function(grid,filters) { var jsonFilters = grid.getFilterData(); if(!filters || !filters.length) { this.store.proxy.extraParams = {}; }this.store.myExtraFilters = this.store.myExtraFilters || []; Ext.each(jsonFilters, function(f) { var param = f.field; this.store.proxy.extraParams[param]=f.data.value; this.store.myExtraFilters.push(param); }, this); },
on cleaning the filters, you just delete what is stored in this.store.myExtraFilters
PHP Code:
Ext.Array.each(this.store.myExtraFilters, function(f){ delete me.store.proxy.extraParams[f];});this.store.myExtraFilters = [];