I am using ExtJS 4.1. I use clearFilter() stores to remove the filter from the store. I apply a filter to the store using the filterBy method. I filter all entries where the name is not Ronaldo.
After cleaning the filter, load the view that contains the grid (attached to the repository). But when I load the grid, I still see that the filter is not cleared. A store is a local store. I did not use any groupings in the store. The store uses only one model.
myStore.filterBy(function (record) { if (record.get('Name') != 'Ronaldo') { return true; } });
So far, everything is working fine, but when I clear the filter with clearFilter() , it takes some time. Is there a faster \ better \ correct way to clean the filter in the store when the filter is applied using filterBy() ?
Sharpcoder
source share