The described issue occurs because when the last item is deleted from the Grid, the aggregates
function returns an empty object
, therefore aggregates.Total
. You can use the following workaround in the grid_RunAggregates
total = aggregates.Total ? aggregates.Total.sum : 0;
Let us know if you have other questions about Kendo UI.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI