Thank you for reporting this bug. We will make it our priority to review this report.
Ext.Data.Store.setSorters() does not clear the current sorters
Ext.Data.Store.setSorters() does not clear the current sorters
Hi, when calling Ext.Data.Store.setSorters(), I was expecting that it would clear the original sorters first. However, I found that it merely appends to the original collection (as can be seen in the following source code)
applySorters: function (sorters, sortersCollection) { if (!sortersCollection) { sortersCollection = this.createSortersCollection(); } sortersCollection.add(sorters); return sortersCollection; },
Also, there is method called "clearSorter", although you have "clearFilter".As a workaround, I'm calling store.sorters.clear() before calling setSorters().
Can you please fix this issue in your next version? Thanks!
Ext.Data.Store.setSorters() does not clear the current sorters
Aucun commentaire:
Enregistrer un commentaire