Results 1 to 3 of 3

Thread: Memory proxy, remoteSort and group will not work

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Jan 2017
    Posts
    12

    Default Memory proxy, remoteSort and group will not work

    Hi,


    in our application, we have the following constellation.
    - Ext.data.Store with a memory proxy
    - Memory proxy with paging (enablePaging=true), so we need remoteFilter and remoteSort


    Now we will add a grouper to the store. This leads us to the following result:
    Bildschirmfoto 2018-11-21 um 16.29.40.png


    Here's the corresponding fiddle: https://fiddle.sencha.com/#view/editor&fiddle/2ntf



    The problem is memory proxy (Ext.data.proxy.Memory) with the following lines:
    PHP Code:
    // Remotely, grouper just mean top priority sorters
    if (grouper) {      
      
    // Must concat so as not to mutate passed sorters array which could be the items property of the sorters collection       
      
    sorters sorters sorters.concat(grouper) : sorters;


    If there is a grouper and no sorters, it returns the empty sorter and does nothing with the grouper.
    Also in the comment is "grouper just mean top priority sorters" but than concat the grouper to the sorters (https://docs.sencha.com/extjs/6.5.2/...#method-concat).




    My solution is the following code:
    PHP Code:
    if (grouper) {      
      
    // Convert to an array      
      
    grouper Ext.Array.from(grouper);  
       
    // Must concat so as not to mutate passed sorters array which could be the items property of the sorters collection      
      
    sorters sorters Ext.Array.insert(sorters0grouper) : grouper;

    Fiddle: https://fiddle.sencha.com/#view/editor&fiddle/2nth

    Thanks,
    Christian

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,005

    Default

    Hi Christian,

    Thank you for reporting this bug to us. I have passed this information along to the support staff and asked for them to look into this. Thank you for your patience.

  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    569

    Default

    Hello Christian,

    Please accept our apologies for the delayed response. This issue has been already reported with reference number
    EXTJS-16411. I will link the bug here for you to track the status.

    Regards,
    Kumar
    Sencha Support.

Similar Threads

  1. [NOREPRO] remoteSort doesn't work with BufferedStore
    By tbraytff in forum Ext 5: Bugs
    Replies: 7
    Last Post: 7 Oct 2015, 4:47 PM
  2. [FIXED] [B2]Remote filters and sorters don't work on List using Proxy memory
    By robsonala in forum Sencha Touch 2.x: Bugs
    Replies: 5
    Last Post: 10 Feb 2012, 11:41 AM
  3. remoteSort does not work.
    By sunrong in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 1 Aug 2010, 7:07 PM
  4. Memory proxy with paging and group summary
    By roberthenniger in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 3 Nov 2008, 5:11 AM
  5. gridPanel remoteSort does not work
    By alexk in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 22 Aug 2008, 6:55 AM

Posting Permissions

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