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

[Solved] Aggregate Function - Group Header

5 Answers 347 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.
Jim
Top achievements
Rank 1
Jim asked on 14 Apr 2010, 03:49 PM
It looks like the group header doesn't attempt to align the result of Aggregate functions with the actual column.  

I added a GroupHeaderTemplate but the aggregates are being tacked onto the end of my template.

How can I turn off the display of the aggregate functions in the group header? 

5 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 15 Apr 2010, 09:54 AM
Hi Jim,

As you already have the template for the group row you can just set the visibility of the aggregates to collapsed which will cause them not to display at all. When it comes to the alignment of the aggregates they were never meant to align with the column, however as this seems to be a more and more requested feature from our clients we will be thinking of providing this functionality in some way.

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
MiddleTommy
Top achievements
Rank 1
answered on 16 Jun 2010, 03:17 AM
How do you set the aggregate to collapsed?


0
Vlad
Telerik team
answered on 16 Jun 2010, 06:14 AM
Hello TWT,

 You can use ShowHeaderAggregates property of GridViewGroupRow to achieve this. Here is an example:

...
<telerik:RadGridView.GroupRowStyle>
  <Style TargetType="telerik:GridViewGroupRow">
      <Setter Property="ShowHeaderAggregates" Value="False" />
  </Style>
</telerik:RadGridView.GroupRowStyle>
...


Kind regards,
Vlad
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
Mark
Top achievements
Rank 1
answered on 25 Jan 2011, 06:06 PM
Will this ability to align GroupHeader Aggregates to their corresponding columns be available anytime soon?
0
Maya
Telerik team
answered on 26 Jan 2011, 09:27 AM
Hi Mark,

Unfortunately, we are still not able to specify any time-frame for the implementation of this functionality. There is a possible workaround as described in this forum thread, but generally it is a bit of a hack. Furthermore, you may vote for this particular feature request here so that its rating gets higher so at its priority. 

Best wishes,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Jim
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
MiddleTommy
Top achievements
Rank 1
Vlad
Telerik team
Mark
Top achievements
Rank 1
Maya
Telerik team
Share this question
or