I'm trying to use the aggregation feature on the kendo grid control. But every time I got next error
Uncaught ReferenceError: count is not defined error
Here is the demo demo
The answer is here: https://www.telerik.com/forums/declarative-creation-of-grid-with-data-attribues-(footertemplate) Look for Daniel's responses
You have to change your footerTemplate to contain a conditional to avoid the error during initialization where your datasource hasn't yet been created due to the way things are initialized.
Change your footerTemplate to
footerTemplate: 'Total Count: #=data.UnitPrice ? data.UnitPrice.count : 0 #'
and it should work.