REQUIRED INFORMATION

Ext version tested:
  • Sencha Touch 2.1.1
Browser versions tested against:
  • ____
  • SRWare Iron 24.0.1350
Description:
  • The PullRefresh plugin is ignoring the given sorters in the store. Therefore the grouper will not work correctly.
Steps to reproduce the problem:
  • Create a store with an array of sorters
  • Give your list (would be good if there are more than 25 records) the PullRefresh-plugin
  • Refresh your list and load more records via ListPaging.
The result that was expected:
  • Correct grouped records by 4 individual states
The result that occurs instead:
  • A messed list where nothing is correctly sorted
HELPFUL INFORMATION

Possible fix:
  • Adding a line of code to PullRefresh.js:
Code:
    /**
     * @private
     * Attempts to load the newest posts via the attached List's Store's Proxy
     */
    fetchLatest: function() {
        var store = this.getList().getStore(),
            proxy = store.getProxy(),
            operation;


        operation = Ext.create('Ext.data.Operation', {
            page: 1,
            start: 0,
            model: store.getModel(),
            limit: store.getPageSize(),
            sorters : store.getSorters(),
            action: 'read',
            filters: store.getRemoteFilter() ? store.getFilters() : []
        });


        proxy.read(operation, this.onLatestFetched, this);
    },
Operating System:
  • ________
  • Windows 7 Professional 32 Bit