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

[Solved] Aggregates order in the GroupHeaderRow

1 Answer 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cyril
Top achievements
Rank 1
Cyril asked on 30 Sep 2011, 11:39 AM
Hi,

I read the following post :

http://www.telerik.com/community/forums/silverlight/gridview/group-description.aspx

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 : http://www.telerik.com/community/forums/silverlight/gridview/how-to-change-the-order-of-the-aggregates-in-the-group-row.aspx

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 05 Oct 2011, 08:07 AM
Hi Cyril,

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

Kind regards,
Maya
the Telerik team

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

Tags
GridView
Asked by
Cyril
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or