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

Aggregate function for only one group

2 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paweł
Top achievements
Rank 1
Paweł asked on 30 Jul 2012, 03:00 PM
Hello!
In my project I've got task, to make aggregation function for all groups in RadGridView at one column, but only in one group for other column.
In example groups: ChocoBars, Lolypops, Cakes have to aggregate with SumFunction SourceField="Quantity", but groups: Popcorn, Nuts, Candies have to aggregate with SumFunction SourceField="Weight"

Is there any possibility to do that?
Kind regards,
Paweł Żochowski

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 31 Jul 2012, 11:56 AM
Hello Pawel,

You can try creating an aggregate function on group descriptor level as illustrated in our online documentation. Is that the behavior you are looking for ?  

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Paweł
Top achievements
Rank 1
answered on 31 Jul 2012, 12:12 PM
No, it is not :(
I've been looking for something, that can aggregate other collumns in one place of each group.
I've solve it - I made a custom property on model, that represent my value depending on the type of record and aggregate on it.
Thank you.
Kind regards!
Tags
GridView
Asked by
Paweł
Top achievements
Rank 1
Answers by
Maya
Telerik team
Paweł
Top achievements
Rank 1
Share this question
or