-
29 Jul 2011 12:43 PM #1
store.filterBy() and store.clearFilter() do not reapply sort
store.filterBy() and store.clearFilter() do not reapply sort
Neither the filterBy() method nor clearFilter() method respect the sortOnFilter property.
Proposed changes to Ext.data.Store:
Code:filterBy : function(fn, scope) { this.snapshot = this.snapshot || this.data.clone(); this.data = this.queryBy(fn, scope || this); if (this.sortOnFilter && !this.remoteSort) { this.sort(); } this.fireEvent('datachanged', this); }, clearFilter : function(suppressEvent) { this.filters.clear(); if (this.isFiltered()) { this.data = this.snapshot.clone(); delete this.snapshot; if (this.sortOnFilter && !this.remoteSort) { this.sort(); } if (suppressEvent !== true) { this.fireEvent('datachanged', this); } } }- Clint Nelissen
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote