The problem is with OData
that return total
as string
since this is received as string
.
In previous releases of code the increment was done as total++
but now it is being added a number
allowing to add more than one record in one single operation. The problem is that if you do string
+ number
you actually get the number
concatenated to the string
.
The easiest way of solving it is providing a total
function that just converts the string
to number
something as simple as defining in the DataSource
:
dataSource: {
type : "odata",
transport : {
read: "http://demos.kendoui.com/service/Northwind.svc/Products"
},
schema : {
total : function (data) {
// Convert __count to number
return +data.d.__count;
}
},
pageSize : 15,
serverPaging : true,
serverSorting : true,
serverFiltering: true
},