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

Group aggregates in data source

1 Answer 125 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Sal
Top achievements
Rank 1
Sal asked on 18 May 2012, 05:23 AM
Hi, how do i get values for the GROUP aggregates to use in my own function.  This works with grid aggregates but I can't access the group aggregates for field "channel".

group: {
     field: "channel", aggregates: [
        { field: "sales_7_days", aggregate: "sum" },
        { field: "current_inventory", aggregate: "sum" }
         ]
},

Then in the field:
groupFooterTemplate: "#=kendo.toString(doMath('weeks_inventory'), 'n1')#"

The function doMath is using ds.aggregates() which works for grid level but not for group level!

Please help!
Thanks!

1 Answer, 1 is accepted

Sort by
0
Sal
Top achievements
Rank 1
answered on 25 May 2012, 07:06 PM
Any help with this please?  I see no mention of this in docs or other areas.
Thanks!
Tags
Data Source
Asked by
Sal
Top achievements
Rank 1
Answers by
Sal
Top achievements
Rank 1
Share this question
or