I am trying to sum a column on a kendo grid, the datasource is not server side data, and the column is defined like this.
data-columns="[
...
{ 'field': 'owing', title: 'Balance Owing', format: '{0:c}', aggregates:['sum'],attributes: { style: 'text-align: right;'},groupFooterTemplate:'#= sum #' },
...
And the datasource has grouping and aggregates added like this
selectedTransactions.group({
field: "company",
aggregates: [
{ field: "owing", aggregate: "sum" }
]
});
selectedTransactions.aggregate([{ field: "owing", aggregate: "sum" }]);
I can't find anything else in kendo or anywhere saying I need to add more, but I am gettign an exception
Uncaught ReferenceError: sum is not defined