This question is locked. New answers and comments are not allowed.
Hi,
I am using the telerik MVC grid as follows:
......
I am using the telerik MVC grid as follows:
......
columns.Bound(o => o.Charge)
.Aggregate(aggregates => aggregates.Sum())
.Width(115)
.Title(
"Charge")
.ClientTemplate(
"<#= FormattedCharge #>")
.ClientFooterTemplate(
"£ <#= $.telerik.formatString('{0:N}', Sum) #>")
.HeaderHtmlAttributes(
new { title = "Represents the total........" });
When I do this the total I get in the footer comes up, for example, as £ 16 or £ 2.99999999998. We would expect it to come out as £ 16.00 or £ 2.99. The type of "Charge" above is double.
Could you confirm that the syntax above is correct? If not, could you please provide the correct syntax.
Many thanks