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

[Solved] Grouping and aggregate

2 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fab
Top achievements
Rank 1
Fab asked on 19 Jan 2012, 02:17 PM
Hello,

I'm wondering if the following is possible with MVC grid :
In your demo : http://demos.telerik.com/aspnet-mvc/razor/grid/aggregatesserverside the lines are grouped by "Units in stock" and a sum is done in the footertemplate (in "unit price" column).

Is it possible to display the "unit price" sum in the Group Header Template, while grouping by "Units in stock" ?
so that we have : "Units In Stock: 0 (Count: 5) - Sum: $229.44" .
My goal is to display the aggregate at the top of the group, instead of the bottom.

Thanks for your help.

2 Answers, 1 is accepted

Sort by
0
Fab
Top achievements
Rank 1
answered on 20 Jan 2012, 11:18 AM
Basically, all what I want to do is the same as
http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/expressions/defaultcs.aspx
when you click the "Goup by expression" button
0
Guen
Top achievements
Rank 1
answered on 05 Jun 2012, 03:47 PM
Hi,

Was there ever a solution for this. I'm trying to implement the exact same idea. 
Thanks for any help offered.

-Guen-
Tags
Grid
Asked by
Fab
Top achievements
Rank 1
Answers by
Fab
Top achievements
Rank 1
Guen
Top achievements
Rank 1
Share this question
or