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

Custom sorting for group

3 Answers 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 14 May 2015, 12:06 AM

I've figured out how to write a custom sort for a column using:

1.sortable: {
2.  compare: function(a, b) {
3....

However, if I group a field, it doesn't seem to be using the custom sort. Am I doing something wrong or is this not a feature that is currently available?

 Thanks.

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 15 May 2015, 01:48 PM

Hello Eric,

I am afraid that the sorting of the groups is not affected by the custom sorting expression set for the field. The sorting expression only sorts the items, but not the groups if the grid is grouped by that field. 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Eric
Top achievements
Rank 1
answered on 18 May 2015, 04:35 PM

Thanks Boyan. So, is there any way to custom sort the groups then?

Thanks, Eric

0
Boyan Dimitrov
Telerik team
answered on 20 May 2015, 01:14 PM

Hello Eric,

I am afraid that sorting of the groups is handled internally and could not be modified. 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Eric
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Eric
Top achievements
Rank 1
Share this question
or