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

Visibility of an expression results row when the group header row is collapsed

1 Answer 23 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alcide Burato
Top achievements
Rank 1
Alcide Burato asked on 13 May 2011, 04:16 PM
Hello,

Suppose we have a gridview where I grouped data by a column "Date".
Suppose I add an aggregation expression like "Sum" for one or more column.

When the gridview is totally expanded I see first the Group Header Row that show the value of the group.
Under this row I have the result of the sum for each column of the grid.

The problem is when I collapse the Group Header Row, the row that contains the sum result for each column is hide (with the data).

Is there a way to mantain visible the aggregates results row when I collapse the Group Header Row?

I send you as attachments tow picture:
the first image show in the red circle the row I'd like to be visible after the collapse (second image).

thanks for any answer,
Alcide

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 18 May 2011, 04:22 PM
Hello Alcide Burato,

Thank you for contacting us.

Currently it is not possible to collapse only the data rows and keep the summary rows visible. This is an interesting feature and we will consider implementing it in a future version. However, you can add summary values directly in the group header row. Please consider the following sample:

this.radGridView1.MasterTemplate.SummaryRowGroupHeaders.Add(new GridViewSummaryRowItem());
this.radGridView1.MasterTemplate.SummaryRowGroupHeaders[0].Add(new GridViewSummaryItem("Value", "Sum: {0}", GridAggregateFunction.Sum));

I hope this helps. Should you have any further questions, do not hesitate to ask.
 
Kind regards,
Jack
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Alcide Burato
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or