I am trying to create a new Kendo DataSource, but my data does not contain anything even though my result.data is an array of 14 items.
01.
shipmentService.getBasicChartData(request)
02.
.then(
function
(result) {
03.
var
dataSource =
new
kendo.data.DataSource({
04.
data: result.data,
05.
sort: {
06.
field:
"date"
,
07.
dir:
"asc"
08.
},
09.
schema: {
10.
model: {
11.
fields: {
12.
date: {
13.
type:
"date"
14.
}
15.
}
16.
}
17.
}
18.
});