Results 1 to 4 of 4

Thread: Server Side Grouping

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    39
    Vote Rating
    0
      0  

    Default Unanswered: Server Side Grouping

    Hi.., We need to do Server Side grouping in gxt3, is that possible and is there any example please.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Answers
    109
    Vote Rating
    93
      0  

    Default

    Grouping is just a specific kind of sorting, but it must be the first sort that is done. The Grid class GroupingView normally asks the local ListStore to do the grouping as an extra sort, but if there is a loader present and it is configured for remote sort, then grouping will also be remote. Take any example that does sorting, and use a GroupingView instead, and this should go together correctly.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    39
    Vote Rating
    0
      0  

    Default

    Thanks Colin for the quick response, that helped me. And if I need to have the previous sort as well as the secondary sort, I will need to maintain that in some variable and add it to the List<SortInfo> s right?

  4. #4
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Answers
    109
    Vote Rating
    93
      0  

    Default

    You can manage your sorts however you would like, but for it to appear correct when grouping, make sure the grouping sort is first. GroupingView manages this internally automatically, so if a user clicks a column header to sort, it sets it as the second sort info, see doSort for the impl details.

Posting Permissions

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