I am using ExtJS 4.1. I am using stores's clearFilter()
to remove the filter from the store. I am applying filter to the store by using filterBy
method. I am filtering all the records where name is not Ronaldo.
After clearing the filter, I load a view which contains a grid (attached to store). But when I load the grid, I can still see that filter is not cleared. The store is local store. I have not applied any grouping on the store. Store is only using one model.
myStore.filterBy(function (record) {
if (record.get('Name') != 'Ronaldo') {
return true;
}
});
While all this is working fine, but when I clear the filter by using clearFilter()
, it is taking some time. Is there any faster\better\correct way to clear the filter on a store when filter is applied by using filterBy()
?