Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
626
Grid Group by column.
posted

1 . is there any way i can keep the groupbyheader column expanded (the header covers all the column) like the one in the example below . http://demos.telerik.com/silverlight/#GridView/Aggregates

2. Is there any way i can keep the column header only at the top of the grid not on every grouped by row. like the example given in this link http://demos.telerik.com/silverlight/#GridView/Aggregates

 

 

  • 7305
    Suggested Answer
    posted

    Hello,

    1. By default row expansion is turned off, which you can turn on by handling GroupByCollectionChanged event and the property is 'IsExpanded', for example:

    if (e.NewGroupedColumns != null && e.NewGroupedColumns.Count > 0)
    {
     foreach (Row r in this.xamGrid1.Rows)
            {
                    r.IsExpanded = true;
            }
    }

    2. The row header (parent/child) can be hidden, but currently the grid does not have a way to display only one header. If you consider hiding it use 'ColumnLayout.HeaderVisibility' property. As far as displaying only one header, I can submit it as a feature request on your behalf.

    Let me know if you have any questions.

    Thank you,
    Sam