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

[Solved] Custom sorting of grouping

1 Answer 89 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anthony
Top achievements
Rank 1
Anthony asked on 14 Apr 2014, 03:06 PM
Is it possible to sort the grouping by anything of than asc/desc? What I have is a list of operations and I want to group by the workcenter but the workcenters need to be in a specific order (ordered by the ID) but I want to show the workcenter name in the group header.

Thanks for any help

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 16 Apr 2014, 04:42 PM
Hi Anthony,

Thank you for contacting us.

You can customize the grouping logic by using a DataGridTemplateColumn with PropertyGroupDescriptor. If you need a more complex grouping mechanism, you can use a DelegateGroupDescriptor instead. Finally, you can change the content of the group header with the RadDataGrid.GroupHeaderTemplate property. I have attached a sample application that demonstrates how you can do that.

I hope this helps.

Regards,
Rosy Topchiyska
Telerik

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid for XAML
Asked by
Anthony
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or