PDA

View Full Version : Store Filters After Reload



whb
25 Sep 2014, 4:14 AM
Hi, I know this question was asked before couple of times, but i cant apply the solution.
what i do is;



stashFilters()
reloadStore()
applyStashedFilters()


but it doesnt seem to work. Any suggestions ?




stashFilters : function() {


if( this.filters.items.length > 0 ) {
Ext.apply(this.storeFilters, this.filters.items);
} else {
this.storeFilters = [];
}


},


applyStashedFilters : function() {
if(this.storeFilters.length > 0 ) {
console.log(this.storeFilters);
this.addFilter(this.storeFilters);
}
},

slemmon
1 Oct 2014, 10:29 PM
Hi,

I wouldn't think you'd need to do anything special. Filters should be applied on reload automatically.

b7o