This is a migrated thread and some comments may be shown as answers.

Sort Groups on click of sort enabled column

1 Answer 8 Views
Grid
This is a migrated thread and some comments may be shown as answers.
SARAVANA KUMAR
Top achievements
Rank 1
SARAVANA KUMAR asked on 28 Nov 2016, 10:31 AM

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

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 01 Dec 2016, 08:06 AM
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.
Tags
Grid
Asked by
SARAVANA KUMAR
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or