javascript - Kendo grid not show sum in footer template -
i used kendo grid load data, have problem. aggregate sum not working correct json data below,total value last row cell value. if change json data working.
var ds = [ { "subname": "to pn 01-001", "subid": "1", "partner": "93", "infdivname": "phuong nam-01", "vigor2910wifi": "28" }, { "subname": "to pn 01-002", "subid": "2", "partner": "93", "infdivname": "phuong nam-01", "vigor2910wifi": "3" }, { "subname": "to pn 01-010", "subid": "10", "partner": "93", "infdivname": "phuong nam-01", "vigor2910wifi": "5" } ]; var cls = [ new extcolumn("vigor2910wifi", "cap", 300, null, false,null, null, "total #=sum#") ]; var datasource = new kendo.data.datasource({ data: ds, pagesize: 20, aggregate: [new extaggregate("vigor2910wifi", "sum")], }) var kendogrid = $("#grideqreportdebtbysub").kendogrid({ datasource: datasource, sortable: true, resizable: true, reorderable: true, pageable: true, columnmenu: true, columns: cls })
i found problem, change
"vigor2910wifi": "3" "vigor2910wifi": 3
this worked.