Group By with same visualization for group row

2 posts, 0 answers
  1. Omri
    Omri avatar
    2 posts
    Member since:
    Feb 2012

    Posted 28 Feb 2012 Link to this post

    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
  2. Omri
    Omri avatar
    2 posts
    Member since:
    Feb 2012

    Posted 01 Mar 2012 Link to this post

    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.

     

Back to Top