Hello,
How to use aggregate function in kendo mvvm grid and limit sum to 2 decimal places. sum is applied in Original Amount . Its MVVM and console error displays sum is not defined
How to use aggregate function in kendo mvvm grid and limit sum to 2 decimal places. sum is applied in Original Amount . Its MVVM and console error displays sum is not defined
<
div
data-role
=
"grid"
id
=
"IGrid"
data-editable
=
'true'
data-columns='[
{ "field": "Description", title: "Description"},
{
"field": "OriginalAmount", title: "Amount", width: "100px", editable: function () { return false; }, template: kendo.template($("\\#GstAmount").html()),
footerTemplate: "Total: #=sum#")
},
{command:[{name:"destroy"}]}
]'
data-bind
=
'source: GST.GSTBreakup ,events: {dataBound: parent().GridDataBound}'
style
=
"height: 200px"
></
div
>