I'm having trouble getting server-side aggregated results to work. This is what I currently have set up:
The DataSource is built in JS with no server-side wrappers:
serverAggregates:
true
,
schema: {
aggregates:
function
(response) {
return
response.aggregatedResults;
}
},
aggregate: [
{ field:
"Revenue"
, aggregate:
"sum"
}
]
The JSON data being returned has:
{
"aggregatedResults"
: {
"Revenue"
: {
"sum"
: 123245"
}
}
}
The grid appears, with an aggregate row at the bottom, but empty cells. My questions are:
Since this is all server-side, why does Kendo need to know what type of aggregate it is (sum, count, etc)? Is there just a "value" type?
If the schema definition for the DataSource includes an aggregates function, why do I need to then re-specify the aggregates lower down?
Do I need to specify a formatting template for each footer cell, or are there defaults automatically applied?
Are my issues with the DataSource or the Grid?
Thanks!