Sort Groups on click of sort enabled column

2 posts, 0 answers
  1. SARAVANA KUMAR
    SARAVANA KUMAR avatar
    14 posts
    Member since:
    Mar 2016

    Posted 28 Nov 2016 Link to this post

    Hi,

    Is there any possibility for sorting the groups as below

    Consider this example:
    GroupA
         Value5
         Value3
    GroupB
         Value1

    This happens when I click the sort of a column:

    GroupA
         Value3
         Value5
    GroupB
         Value1

    What I'm wanting:

    GroupB
         Value1
    GroupA
         Value3
         Value5

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 01 Dec 2016 Link to this post

    Hi Saravana,

    Such sorting of the groups is not supported and the sorting will be applied on the values of the grouped field (or for the individual groups values). The main issue with the requirement that you have is the fact that you could have the following group values:
    GroupB
         Value1
         Value7
    GroupA
         Value3
         Value5

    However, you can take a look at the approach used in the following Code Library for custom grouping (which will also allow you to implement the custom sorting as well) :
    Hope this helps.


    Regards,
    Konstantin Dikov
    Telerik by Progress
    Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Back to Top