I have a grid that is attached to a datasource. When it reads data, the server responses with no-content (when there is no data in the database).
So the returned data is undefined. But the datasource is still trying to read the total which gives an exception.
This line throws the error in kendo.all.js file
total: function (data) {
return data.length;
},
I was under the impression that the dataSource ignores any further processing if it does not get any valid data form the server.