Results 1 to 2 of 2

Thread: Sorting not proper when grouping

  1. #1
    Sencha User harman's Avatar
    Join Date
    Jul 2011
    Location
    India
    Posts
    138
    Answers
    2

    Default Sorting not proper when grouping

    Hi,

    I have an ExtJS 4.0.7 grid.
    I use a store that is populated with json data.
    I use a group field just to find out counts of records with some specific type.
    I do not want to sort them or visually group them.
    But the group field affects sorting.
    This is the config i use for store

    Code:
    var gridStore = new Ext.data.Store({
        pageSize: 15,
        model: 'gridModel',
        groupField: 'field1',
        groupDir : 'undefined',
        sortOnLoad : false,
        proxy: {
                    type: 'ajax',
                    url: 'myData.json',
                   },
    reader: {
        type: 'json',
        root: 'rootU',
        successProperty: 'success',
        totalProperty : 'totalCount'
    }
    });
    Can anyone post a quick reply.

  2. #2

Tags for this Thread

Posting Permissions

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