This question is locked. New answers and comments are not allowed.
I Have a telerik grid that works fine , and sums up columns which are in a detailview - child grid
So when you click the expand column to see the child grid everything works fine apart from when there are no elements in
the child grid , so in this case we have a section as the top grid and questions below in the detail , expanding a section
which has no questions receive the following jquery 1-5-1.min error
Microsoft JScript runtime error: 'Sum' is undefined
This is the columns markup for the grid in question
.Columns(columns =>
{
columns.Bound(d => d.Ordinal);
columns.Bound(d => d.Name);
columns.Bound(d => d.Required);
columns.Bound(d => d.MarksAvailable)
.Aggregate(aggreages => aggreages.Sum()) // <-- Sum aggregate
.ClientFooterTemplate("Total Marks Available :<#= Sum #>");
any ideas how we can trap this if there are no errors ? or a fix ?
Thanks
;