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

Chaning Group Default Sort

1 Answer 183 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 19 Dec 2018, 08:59 PM

When working with the .Group property, there is an option for changing the sort.

.Group(group => group.Add(p => p.fieldname))

it would appear that you should be able to set the System.ComponentModel.ListSortDirection

This is not working, and the documentation is abysmal.

Instead of the group sorting asc, I need it to sort desc.

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 21 Dec 2018, 12:56 PM
Hello Patrick,

To sort the group by descending use the AddDescending method as follows.

e.g.

.Group(group => group.AddDescending(p => p.fieldname))


Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Patrick
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or