This question is locked. New answers and comments are not allowed.
Hello.
I have a page with a Model with some data and then a editable grid with some items of this Model. The Grid data is Ajax binded.
I have an aggregate footer which sums one of the columns, but I need to subtract this total from a field in the Model.
it would be something like (the above sum - Model.Cost).
when I change some price, I would need to reload the value of this last calculation.
How I put the Aggregate Sum in that calculation?
Thanks,
Ezequiel
I have a page with a Model with some data and then a editable grid with some items of this Model. The Grid data is Ajax binded.
columns.Bound(c => c.Price) .Width(85).Aggregate(aggregates => aggregates.Sum()).ClientFooterTemplate("<#= $.telerik.formatString('{0:0,0.0}', Sum)#>") .HtmlAttributes(new { style = "text-align:right" });I have an aggregate footer which sums one of the columns, but I need to subtract this total from a field in the Model.
it would be something like (the above sum - Model.Cost).
columns.Bound(p => p.Description).FooterTemplate(() =>{%> Total:<%= string.Format("{0:c}", (###Aggregate Sum### - Model.TotalCost)%> <%}); How I put the Aggregate Sum in that calculation?
Thanks,
Ezequiel