This question is locked. New answers and comments are not allowed.
I have looked at lot of examples of how to do a aggregate summary for a grid. Unfortunately, none the examples I tried to implement, work for me. One of the them comes close. For like $5000 in sales, I get a aggregate sum of $50. Why that's happening, I have no idea. Here is the code I have:
I'm out of ideas here. Any help would be greatly appreciated. I am using John DeVight's code to build dynamic tabs with partial views:
Telerik MVC : jQuery.ajax, Partial View and the Telerik Grid:
http://www.aspnetwiki.com/page:jquery-ajax-partial-view-and-the-telerik-grid
Steve
columns.Bound(j => j.TotalValue).Width(100).Format("{0:c}").HeaderHtmlAttributes(new { style = "text-align: right;" }).HtmlAttributes(new { style = "text-align: right;" }) .Aggregate(aggregates => aggregates.Sum()) //.ClientFooterTemplate("<div>Total Price: <#= Sum#></div>"); //FooterTemplate(@<text>Total: @item.Sum.Format("{0:c}")</text>); //.ClientFooterTemplate("<div>Total Price: <#= $.telerik.formatString('{0:0.0000}', Sum * 1000)#></div>"); .ClientFooterTemplate("<div>Total Price: <#= $.telerik.formatString('{0:c}', Sum)#></div>");I'm out of ideas here. Any help would be greatly appreciated. I am using John DeVight's code to build dynamic tabs with partial views:
Telerik MVC : jQuery.ajax, Partial View and the Telerik Grid:
http://www.aspnetwiki.com/page:jquery-ajax-partial-view-and-the-telerik-grid
Steve