Results 1 to 4 of 4

Thread: Ext 4.2.0: Ext.data.Store.sort() clears view when buffered and remoteSort are set

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    4
    Vote Rating
    0
      0  

    Default Ext 4.2.0: Ext.data.Store.sort() clears view when buffered and remoteSort are set

    When sort() is invoked on a store instance associated with a Grid with buffered: true and remoteSort: true, the view is cleared. Subsequently, if the beforeload listener returns false, the view is not restored.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,317
    Vote Rating
    1291
      1  

    Default

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

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    15
    Vote Rating
    2
      0  

    Default

    Is there any workaround for this issue?

  4. #4
    Sencha User
    Join Date
    Mar 2013
    Posts
    4
    Vote Rating
    0
      0  

    Default

    I extended Ext.data.Store to fire a custom event before sort that cancels the sort based on the retrun value from teh listener. It's a very specific workaround for my needs. YMMV. Here's my overridden sort() function:

    Code:
      sort: function(sorters, direction) {
            var me = this;
            if (me.fireEvent('c_beforesort', me) !== false) {
                return me.callParent([sorters, direction]);
            }
        }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •