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

How to customize "AggregateFunctions" columns of RadGridView

2 Answers 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Triet Nguyen Cong
Top achievements
Rank 2
Triet Nguyen Cong asked on 23 Aug 2010, 07:50 AM
Hi Telerik team,

How can we customize display in "AggregateFunctions" columns? Samples: We have 2 Sumfunctions like this

<telerik:GridViewDataColumn.AggregateFunctions>
  <data:SumFunction SourceField="CurrentPercentage" Caption="Total Percentage:  "/>
  <data:SumFunction SourceField="CurrentHeadcount" Caption="Total Headcount  :  "/>
</telerik:GridViewDataColumn.AggregateFunctions>

In the GUI, 2 sumfunctions will be arranged vertically ("Total Percentage" and then "Total Headcount" ), but they must be arranged horizontally. We can't find the way to do this. Could you help us?

Thanks

2 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 23 Aug 2010, 02:24 PM
Hi Triet Nguyen Cong,

You can align the results of the aggregate functions by using the footer property of the column. As it is an object you can place an AggregateResultsList in it and change its ItemsPanel to be a horizontal StackPanel rather than a vertical one. 

Attached I am sending you a sample which achieves just that.

Greetings,
Kalin Milanov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Triet Nguyen Cong
Top achievements
Rank 2
answered on 24 Aug 2010, 08:03 AM
Thanks Kalin Milanov!

It works exactly what we expected.

Have a nice day,
Triet
Tags
GridView
Asked by
Triet Nguyen Cong
Top achievements
Rank 2
Answers by
Kalin Milanov
Telerik team
Triet Nguyen Cong
Top achievements
Rank 2
Share this question
or