or
{ data: [], totalCount: 0 }
myDS =
new
kendo.data.DataSource({
type:
"json"
,
pageSize: 15,
serverPaging:
true
,
serverFiltering:
true
,
transport: {
read: {
type:
"GET"
,
dataType:
"json"
,
data: {
func:
"myfunc"
},
url:
"../myrest/"
}
},
schema: {
model: {
id:
"MY_ID"
,
fields: {
MY_ID: { type:
"string"
},
SHORT_DESCRIPTION: { type:
"string"
}
}
},
data:
function
(response) {
return
response.data;
},
total:
function
(response) {
return
response.totalCount;
}
}
});
{ data: [{}], totalCount: 0 }
//Mobilize me
window.kendoMobileApplication =
new
kendo.mobile.Application(document.body);
Thank you!
-Vik M