Results 1 to 4 of 4

Thread: Grouping sorting problem

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    37
    Vote Rating
    0
      0  

    Default Grouping sorting problem

    Hi,

    I don't want to sort my list output as my record set coming so I want to put like that.

    Coming output is like this
    Coming Output.jpg


    But I need like this:-
    Preferred Output.jpg


    I am using slide menu. I don't want to sort the data after grouped and I am not applying any sorting.

    Please can anyone help.



    Thanks,
    Manish

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,270
    Vote Rating
    1468
      0  

    Default

    What is your grouper like?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    37
    Vote Rating
    0
      0  

    Default

    My grouper like:-


    group: "FILTER NEWS FEED"

    group: "A Resources"

    group: "MORE"


    I need the group in the same order which i have mentioned above.

  4. #4
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    631
    Vote Rating
    41
      0  

    Default Having same problem

    I was having the same problem and here is how I fixed it. It now uses the order from the store.

    Code:
    Ext.define('Csg.store.Detail', {
        extend: 'Ext.data.Store',
    
    
        requires: [
            'Csg.model.Detail'
        ],
    
    
        config: {
            model: 'Csg.model.Detail',
            grouper: {
                groupFn: function(record) {
                    return record.get('group');
                },
                sorterFn: Ext.emptyFn
            }
        }
    });

Posting Permissions

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