How to change the order of the aggregates in the group row ?

2 posts, 0 answers
  1. Cyril
    Cyril avatar
    9 posts
    Member since:
    May 2011

    Posted 12 Sep 2011 Link to this post

    Hi,
    I have two aggregates on my raggridview:

    column1.AggregateFunctions.Add(new CountFunction { ResultFormatString = "Total = {0}" });
    column2.AggregateFunctions.Add(new SumFunction { ResultFormatString = "Sum= {0}" });

    My column1 is define first in the column list, so when I group a column, the Count function is displayed first.

    Total = 25 , Sum = 50

    I want to switch the position, and I want the Sum first, how can I do that ?

    Sum = 50 , Total = 25

    Thank you !
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 05 Oct 2011 Link to this post

    Hello Cyril,

    Would you take a look at this forum thread ? You can try a similar approach, but instead of defining the aggregates you want to be displayed, you can change the order they are inserted in the new collection - newAggregates.

     
    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top