how do I collapse visibility for Group aggregates?

4 posts, 0 answers
  1. Brian Graves
    Brian Graves avatar
    48 posts
    Member since:
    May 2010

    Posted 25 May 2010 Link to this post

    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.
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 26 May 2010 Link to this post

    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.
  3. Arun
    Arun avatar
    4 posts
    Member since:
    Jul 2010

    Posted 16 Jul 2010 Link to this post

     

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

     

     

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

     

    s.Setters.Add(newSetter);

    s.Seal();

     

    this.RadGridView1.GroupRowStyle = s;

     

  4. Don
    Don avatar
    1 posts
    Member since:
    Dec 2012

    Posted 12 Dec 2012 Link to this post

    Thanks! 
    For the record 
    silverlight radgridview  grouprowstyle set programmatically  AggregateFunctions  ShowHeaderAggregates 

    it took me a while to find this 
Back to Top