Hybrid View

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-4107 in a recent build.
  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    30
    Vote Rating
    0
    Isnogud is on a distinguished road

      0  

    Default PullRefresh ignores sorterparams

    PullRefresh ignores sorterparams


    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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.