or
var
dataSourceStatistics =
new
kendo.data.DataSource({
transport: {
read: {
data: {
f:
'getCustomerStats'
,
fromDate:
function
() {
return
kendo.toString(kendo.parseDate(calendarstart.value()),
"yyyy-MM-dd"
)
},
toDate:
function
() {
return
kendo.toString(kendo.parseDate(calendarend.value()),
"yyyy-MM-dd"
)
},
custStats:
null
}
}
},
schema: {
data:
function
(data) {
return
data.result.custStats.Record;
},
model:{
id:
"Employee"
,
fields: {
Employee:
"Employee"
,
Value:
"Value"
,
ValueUsed:
"ValueUsed"
,
ValueLeft:
"ValueLeft"
}
}
},
pageSize: 10
});
[{
"Employee"
:
"John Doe"
,
"ValueUsed"
:
"50"
,
"ValueLeft"
:
"0"
}]