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

how to sort by Aggregates values

1 Answer 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ttLAL
Top achievements
Rank 1
ttLAL asked on 16 Mar 2014, 01:23 AM
http://www.telerik.com/help/winforms/gridview-grouping-group-aggregates.html

GroupDescriptor descriptor = new GroupDescriptor();
descriptor.GroupNames.Add("ShipName", ListSortDirection.Ascending);
descriptor.Aggregates.Add("Count(ShipName)");
descriptor.Aggregates.Add("Max(Freight)");
descriptor.Aggregates.Add("Avg(Freight)");
descriptor.Format = "The ship {1} has {2} item(s) with maximum freight {3} and avarage freight of {4:c2} per ship.";
this.radGridView1.GroupDescriptors.Add(descriptor);

How to do sort by Max (descriptor.Aggregates.Add("Max(Freight)");)
How to do ability to let Antonio Moreno Taqueria(max 84.84) is first ,Alfreds Futterkiste (max 69.53) is second ,Ana Trujillo Emparedados y helados (max 43.9) is third.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 20 Mar 2014, 06:58 AM
Hello,

Thank you for contacting us.

It is not possible to sort the groups by their header text or an aggregate function, this functionality is not supported by RadGridView. We will consider implementing it in future if more users demand it.

Let me know if you have further questions.

Regards,
George
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
GridView
Asked by
ttLAL
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or