Sorting by aggregation

2 posts, 0 answers
  1. Dominik
    Dominik avatar
    59 posts
    Member since:
    Dec 2012

    Posted 13 May 2015 Link to this post


    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?

  2. Dess
    Dess avatar
    1562 posts

    Posted 13 May 2015 Link to this post

    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:

    I hope this information helps. Should you have further questions, I would be glad to help.
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top