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

Sorting by aggregation

1 Answer 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
konrad
Top achievements
Rank 1
konrad asked on 13 May 2015, 01:26 PM

Hi,

In the attached is a grid layout. I have grouping on column Abbreviation. There is also sorting on Document Amount column (from the lowest to the largest).
I would like to change the way group is sorted (programmatically). The group should sort base on aggregated values (sum of Document Amount column).

AUT: 102,08  
AIR: 592,98,
ARU: 3 918,40 
AKE: 4 750,00
BER: 6 024,00
ANG: 33 630,00
ALBER: 124 729,22
and so on...

Is it possible?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 13 May 2015, 02:13 PM
Hello Dominik,

Thank you for writing.

In order to change the order of your Groups using custom grouping, you must implement your own generic Group comparer and change the default one. The following forum post demonstrates a sample approach:
http://www.telerik.com/forums/sorting-group-header.

I hope this information helps. Should you have further questions, I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
konrad
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or