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

Group By with same visualization for group row

1 Answer 29 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Omri
Top achievements
Rank 1
Omri asked on 28 Feb 2012, 09:45 AM
Hi,

I'm trying to create a gridview with grouping and aggregates, similar to this demo: http://demos.telerik.com/silverlight/#GridView/Aggregates

I would like the aggregated rows to look exactly like the detailed rows, similar to the attached picture.

My columns are dynamically created, based on the data, so I can't fix create the grouped row prior to capturing the data.
All the columns have int values (so we can aggregate them all)

Is there any easy way of accomplishing this?

Thanks!
Omri

1 Answer, 1 is accepted

Sort by
0
Omri
Top achievements
Rank 1
answered on 01 Mar 2012, 04:15 PM
Hi,

I finally managed to do it with a code behind. something like that:

foreach

 

 

(var item in radGrid.Columns)
{

 

 

 

    SumFunction f = new SumFunction();

 

    ((

 

GridViewDataColumn)item).AggregateFunctions.Add(f);
}

thanks.

 

Tags
GridView
Asked by
Omri
Top achievements
Rank 1
Answers by
Omri
Top achievements
Rank 1
Share this question
or