[CLOSED] Store client side .getSortState() replacement

  1. #1

    [CLOSED] Store client side .getSortState() replacement

    Hi,

    The .getSortState() store method has been removed and it's obviously another breaking change to the client side Store model. I'm curious what's recommended as a functional replacement. On the surface, it's probably store.sorters property but I couldn't figure out how to use it yet.

    http://docs.sencha.com/extjs/4.2.0/#...Ext.data.Store
    Last edited by Daniil; May 01, 2013 at 4:20 PM. Reason: [CLOSED]
  2. #2
    Hi Vadym,

    Added a new breaking change item.
    173. The Store's getSortState client side method has been removed. Please use its sorters property, it is a MixedCollection instance.
    The MixedCollection API:
    http://docs.sencha.com/extjs/4.2.0/#...ixedCollection
    Last edited by Daniil; May 01, 2013 at 4:20 PM. Reason: Please use [CODE] tags
  3. #3
    Thanks for the info Daniil,

    I'm going to use a port like this:

        var sortStates=[];
        store.sorters.each(function (item, index) {
            var sortState = {};
            sortState.field = item.property;
            sortState.direction = item.direction;
            sortStates.push(sortState);
        });
    You may close this thread down.

Similar Threads

  1. Replies: 9
    Last Post: Oct 16, 2012, 12:05 AM
  2. [CLOSED] 2.x Query from Store on Client Side
    By omazlov in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Sep 07, 2012, 5:40 PM
  3. Replies: 3
    Last Post: Dec 26, 2011, 1:32 PM
  4. Replies: 1
    Last Post: Dec 01, 2010, 5:14 PM
  5. Replies: 2
    Last Post: May 06, 2010, 8:08 AM

Tags for this Thread

Posting Permissions