1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    39
    Vote Rating
    0
    rmulcha is on a distinguished road

      0  

    Default Unanswered: Server Side Grouping

    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,732
    Answers
    109
    Vote Rating
    90
    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


    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
    rmulcha is on a distinguished road

      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,732
    Answers
    109
    Vote Rating
    90
    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


    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.

Thread Participants: 1