B
Bert Binnenmarsch
Guest
Hello Edsel, 1) The aggregate is working just fine (see screenshot in 2), but the error message appears when I group a column. The following is the code that I have punt in the onShow event $scope._$ds["ViewDataSourceRapport"].aggregate([{ field: "aantal", aggregate: "sum" }, { field: "bedrag", aggregate: "sum" } ]); for (var i = 0; i totaal: #= sum # '; } if ($scope.gridRapport.options.columns.field == 'bedrag') { $scope.gridRapport.options.columns.aggregates = '["sum"]'; $scope.gridRapport.options.columns.footerTemplate = ' totaal: #= kendo.toString(sum, "c2") # '; } } 2) the kendo.toString(sum, "c2") did the trick It is a partial screenshot to demonstrate the contents of the footer.
Continue reading...
Continue reading...