This question is locked. New answers and comments are not allowed.
I have a Grid using ClientFooterTemplate which works fine when there are rows, however on an empty Grid it takes forever to display the totals. In fact after 5 minutes I just give up and it never displays ClientFooterTemplate.
As I say it's only an issue on an empty Grid.
@(Html.Telerik().Grid<GRID.ViewModels.FrozenFoodsRiskViewModel>() .Name("risksGrid") .ClientEvents(events => events.OnEdit("onEdit")) .Editable(editing => editing.Mode(GridEditMode.PopUp)) .Sortable() .Filterable() .DataKeys(keys => keys.Add(r => r.RiskID)) .ToolBar(commands => commands.Insert().ButtonType(GridButtonType.Image).HtmlAttributes(new { @title = "Add New Risk" })) .DataBinding(dataBinding => { dataBinding.Ajax() .Select("_RisksIndex", "FrozenFoodsSection", new { policyZoneID = Model.PolicyZoneID, sectionID = Model.FrozenFoodsSectionID }) .Update("_UpdateRisk", "FrozenFoodsSection", new { policyZoneID = Model.PolicyZoneID, sectionID = Model.FrozenFoodsSectionID }) .Insert("_InsertRisk", "FrozenFoodsSection", new { policyZoneID = Model.PolicyZoneID, sectionID = Model.FrozenFoodsSectionID }) .Delete("_DeleteRisk", "FrozenFoodsSection", new { policyZoneID = Model.PolicyZoneID, sectionID = Model.FrozenFoodsSectionID }); }) .Columns(columns => { columns.Bound(r => r.RiskID).Hidden().ReadOnly(); columns.Command(commands => { commands.Edit().ButtonType(GridButtonType.Image).HtmlAttributes(new { @title = "Edit Risk"}); commands.Delete().ButtonType(GridButtonType.Image).HtmlAttributes(new { @title = "Delete Risk" }); }).Title("Commands").Width(110); columns.Bound(r => r.SumInsured).Width(100) .Aggregate(aggregates => aggregates.Sum()) .ClientFooterTemplate("Total: <#= Sum #>"); columns.Bound(r => r.Rate).Width(100).Format("{0:0.0000}"); columns.Bound(r => r.Age).Width(50); columns.Bound(r => r.Description).Width(200); columns.Bound(r => r.InGuaranteePeriod).Width(100); columns.Bound(r => r.AgeDiscount).Width(100).Format("{0:0.0000}"); columns.Bound(r => r.TechnicalPrice).Format("{0:0.00}").Width(100) .Aggregate(aggregates => aggregates.Sum()) .ClientFooterTemplate("Total: <#= typeof Sum != 'undefined' ? $.telerik.formatString('{0:0.00}', Sum) : 0 #>"); }) )As I say it's only an issue on an empty Grid.