Hybrid View

  1. #1
    Sencha User
    Join Date
    Jul 2010
    Posts
    16
    Answers
    2
    Vote Rating
    -1
    ssinai is an unknown quantity at this point

      -1  

    Default Answered: Override Grid GroupinView/GroupingStore sort

    Answered: Override Grid GroupinView/GroupingStore sort


    I'm using a grid with GroupingStore and GroupingView. The three groups are

    Core
    Alternate Core
    Additional Measures

    I need to order the groups in the above order, but they're showing up in the following order

    Additional Measures
    Alternate Core
    Core

    Anyone know what I need to do to override the alphabetical sort?

    Thanks.

  2. I've got it working now. I had to specifically call sort after the grouping store was loaded with data. I incorrectly thought the grouping store automatically sorted data when it was loaded.

  3. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Answers
    109
    Vote Rating
    89
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    At a glance, it appears your sort order is backward - how are you sorting, and have you tried specifying the opposite order?

  4. #3
    Sencha User
    Join Date
    Jul 2010
    Posts
    16
    Answers
    2
    Vote Rating
    -1
    ssinai is an unknown quantity at this point

      0  

    Default


    I've tried adding the groups in different orders, but the group headers always sort alphabetically.

    Isn't there a way to override or disable the sort for group headers?

  5. #4
    Sencha User
    Join Date
    Jul 2010
    Posts
    16
    Answers
    2
    Vote Rating
    -1
    ssinai is an unknown quantity at this point

      0  

    Default


    I've got it working now. I had to specifically call sort after the grouping store was loaded with data. I incorrectly thought the grouping store automatically sorted data when it was loaded.

Thread Participants: 1

Tags for this Thread