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

AggregateFunctions in GroupFooter for column

8 Answers 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 24 May 2013, 01:32 PM
How to add aggregate functions (for example CountFunction) to group column footer?
I use TelerikRadControls version 2010.2.714.103.

I've tried to add functions to column:
someColumn.AggregateFunctions.Add(new CountFunction())
but it adds aggregate function to column footer only.

I've tried to add functions to grid:
OnGridGrouped -> e.GroupDescriptor.AggregateFunctions.Add(new CountFunction());
but it adds aggregate function to group header.

8 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 May 2013, 02:39 PM
Hi,

Have you set the ShowGroupFooters property of the RadGridView to True?

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Anton
Top achievements
Rank 1
answered on 24 May 2013, 02:46 PM
Yes. I can see group footers. But footers are empty.
0
Anton
Top achievements
Rank 1
answered on 27 May 2013, 11:09 AM
Any suggestions?
0
Dimitrina
Telerik team
answered on 27 May 2013, 01:23 PM
Hello,

This is quite an old version. I cannot reproduce such an issue with the latest binaries. Would you please send me a demo project showing the behavior you experience?

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Anton
Top achievements
Rank 1
answered on 29 May 2013, 09:05 AM
I found the problem. I added aggregation functions on Grouped event instead of Grouping.

Now I want to separate all functions on "Header" and "Footer" functions. For example header of group should show "Count" and Footer of group should show "Sum". How can I implement it?
0
Dimitrina
Telerik team
answered on 29 May 2013, 12:31 PM
Hi,

As I understand you would like to apply two different AggregateFunctions for the column and one of it to display to the Group header and the other to the Group footer. Is that correct?

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Anton
Top achievements
Rank 1
answered on 29 May 2013, 12:58 PM
It's correct. Sorry for my bad English.
0
Accepted
Dimitrina
Telerik team
answered on 29 May 2013, 01:27 PM
Hello,

There is not such an option. You can control showing or hiding them at all, but not per AggregateFunction.

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Anton
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Anton
Top achievements
Rank 1
Share this question
or