I want the sum of two columns to be added to another column in the kendo grid. Now it is showing that NaN when I use ClientTemplate whereas in the case of ClientGroupColumnTemplate shows the correct result. In my case, I want the result in another column instead of a group column any help?
.Columns(c =>
{ c.Bound(p => p.field1).Title("F1");
c.Bound(p => p.field2).Title("F2");
c.Bound(p => p.Total).Title("Total").ClientTemplate("#=calculate(data)#");
})
<script>
function calculate(data) {
field1 + p.field2;
return result;
</script>