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

Show Summary Row in Group Header

3 Answers 531 Views
GridView
This is a migrated thread and some comments may be shown as answers.
mark thompson
Top achievements
Rank 1
mark thompson asked on 06 Apr 2010, 05:41 PM
Hi,
my users have asked for the information I put in a summary row to be in the group header. i.e. they want to look at a grid which has column names and group headers and only see the summary information.
so they will only exand a group if they are interested in drilling down.
I have added a summary row at the top, which helps, but they still have to open a group to see them. If the grid is collapsed they only see the group by names.

thanks
mark

3 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 09 Apr 2010, 01:56 PM
Hi mark thompson,

Thank you for writing.

RadGridView supports summaries in the group header row out-of the box. You can add them by using SummaryRowGroupHeaders collection. Please, consider the following code as example:
 
GridViewSummaryItem summary = new GridViewSummaryItem("Account", "Positions List: {0}", GridAggregateFunction.Count);
this.radGridView1.MasterGridViewTemplate.SummaryRowGroupHeaders.Add(new GridViewSummaryRowItem(new GridViewSummaryItem[] { summary }));

Let me know if you have any additional question.

Regards,
Martin Vasilev
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
Clyde
Top achievements
Rank 1
answered on 24 Apr 2010, 01:03 AM
I am interested in achieving the same behavior as the original post.

The code sample worked to provide the aggregates in a group summary row. But the desired behavior of having the summary row remain visible when the group is collapsed was not achieved. Is it possible???

Cheers,
Clyde.
0
Martin Vasilev
Telerik team
answered on 26 Apr 2010, 05:06 PM
Hi Clyde,

Since the summary row element is still a child row in the parent row collection, there is no way to collapse all children except the summary row. That is why we provide the SummaryRowGroupHeaders collection, which allows including a required summary info into the parent row.
 

Kind regards,
Martin Vasilev
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.
Tags
GridView
Asked by
mark thompson
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Clyde
Top achievements
Rank 1
Share this question
or