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

how do I collapse visibility for Group aggregates?

3 Answers 217 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brian Graves
Top achievements
Rank 1
Brian Graves asked on 25 May 2010, 08:54 PM
Since, the group header doesn't align with the columns, I want to turn off the display as described here:
http://www.telerik.com/community/forums/silverlight/gridview/aggregate-function-group-header.aspx

Question is: how do I do this (preferrably programmatically)?  I can't find the visibility property of my aggregate functions...they are simply added to my columns.

3 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 26 May 2010, 06:34 AM
Hello Brian Graves,

You can use the ShowHeaderAggregates property of our group rows to hide the aggregates.

<Grid.Resources>
    <Style x:Key="MyCustomGroupRowStyle" TargetType="telerik:GridViewGroupRow">
        <Setter Property="ShowHeaderAggregates" Value="False"/>
    </Style>
</Grid.Resources>
<telerik:RadGridView GroupRowStyle="{StaticResource MyCustomGroupRowStyle}">

Hope this helps.


Best wishes,
Milan
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
Arun
Top achievements
Rank 1
answered on 16 Jul 2010, 11:45 PM

 

Style s = new Style(typeof(GridViewGroupRow));

 

 

Setter newSetter = new Setter(GridViewGroupRow.ShowHeaderAggregatesProperty, false);

 

s.Setters.Add(newSetter);

s.Seal();

 

this.RadGridView1.GroupRowStyle = s;

 

0
Don
Top achievements
Rank 1
answered on 12 Dec 2012, 08:39 PM
Thanks! 
For the record 
silverlight radgridview  grouprowstyle set programmatically  AggregateFunctions  ShowHeaderAggregates 

it took me a while to find this 
Tags
GridView
Asked by
Brian Graves
Top achievements
Rank 1
Answers by
Milan
Telerik team
Arun
Top achievements
Rank 1
Don
Top achievements
Rank 1
Share this question
or