Aggregates order in the GroupHeaderRow

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

    Posted 30 Sep 2011 Link to this post


    I read the following post :

    The Converters approoach interest me a lot.
    Unfortunately, I see that AggregateResult take an AggregateFunction in his constructor but the AggregateFunction is private...

    My idea was to derive from AggregateFunction, then add a property 'Order'. Then I could do something like that :

    public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        RadObservableCollection<AggregateResult> aggregates = value as RadObservableCollection<AggregateResult>;
        return aggregates.Cast(CustomAggregateResult).OrderBy(a=>a.AggregateFunction.Order);

    With that, I have a robust way to order the aggregates in the group row header. 

    So, why is the aggregate function is private, and could you please make the getter public?

    Relative (unanswered) post :
  2. Maya
    Maya avatar
    4062 posts

    Posted 05 Oct 2011 Link to this post

    Hi Cyril,

    Would you clarify a bit why the approach illustrated in the forum thread is not appropriate for you? 

    Kind regards,
    the Telerik team

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

Back to Top