c# - ASP.NET MVC & Kendo UI Grid aggregates -


i trying sum of "transactionamount"s in kendo grid have created. have following code , getting javascript error saying 'sum' undefined.

could please tell me doing wrong?

<%: html.kendo().grid<transactions>()                         .name("grid_#=accountnumber#")                         .columns(c =>                         {                             c.bound(m => m.tdate).title("transaction date").clientfootertemplate("total:");                             c.bound(m => m.transactionamount).title("transaction amount").format("{0:c}").clientfootertemplate("#= sum #");                             c.bound(m => m.username)                             c.bound(m => m.address1)                             c.bound(m => m.city)                             c.bound(m => m.state)                         })                         .datasource(datasource => datasource                             .ajax()                             .aggregates(v => { v.add(p => p.transactionamount).sum(); })                             .read(read => read.action("gettransactions", "reports", new { startdate = model.startdate, enddate = model.enddate, accountnumber = "#=accountnumber#" }))                          )                         .sortable()                         .toclienttemplate(#=sum#)               %> 


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -