Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
Is it possible to sum a column without using Ajax in the datasource?
Hello Mark,
You you bind the Grid to local data and still configure the aggregates. For example:
@(Html.Kendo().Grid(Model) .Name("grid") .Columns(columns => { columns.Bound(p => p.myColumn).ClientFooterTemplate("Total: #=sum#"); }) .DataSource(dataSource => dataSource .Ajax() .ServerOperation(false) .Aggregates(aggregates => { aggregates.Add(p => p.myColumn).Sum(); }) ) )
Here is a REPL sample for your reference:
https://netcorerepl.telerik.com/QolOxFbq10rcSB3833
I hope that helps.
Regards, Mihaela Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.