or
var
dataSourceStatistics =
new
kendo.data.DataSource({
transport: {
read: {
data: {
f:
'getCustomerStats'
,
fromDate:
function
() {
return
"2012-01-01"
;
},
toDate:
function
() {
return
"2012-06-19"
;
},
custStats:
null
}
},
update: {
}
},
schema: {
data:
function
(data) {
return
data.result.custStats.Record;
},
total:
function
(data) {
return
data.result.custStats.Record.length;
},
model:{
id:
"EmployeeId"
,
fields: {
Employee: {
editable:
false
},
EmployeeId: {
editable:
false
},
ValueCandE: {
type:
"number"
,
defaultValue: 0
},
ValueE: {
type:
"number"
,
defaultValue: 0
},
ValueEandCandM: {
type:
"Number"
},
ValueEandM: {
type:
"Number"
}
}
}
}
});