or
({"movies":[{"ID":1,"Title":"Movie 1","ReleaseDate":"\/Date(1355250600000)\/","Genre":"Comedy","Price":10},{"ID":2,"Title":"Movie 2","ReleaseDate":"\/Date(1355250600000)\/","Genre":"Thriller","Price":10}]})
$("#child").kendoComboBox({
cascadeFrom: "parent",
dataTextField: "childName",
dataValueField: "childID",
dataSource: {
transport: {
read: {
url: "",
data: {
parentID: $("#parent").val()
}
}
}
}
});
data: function() {
parentID: $("#parent").val()
}
<
div
data-role
=
"view"
id
=
"contactView"
data-model
=
"ContactViewModel"
data-show
=
"contactShow"
>
<
h1
id
=
"ContactHallo"
>Contact Screen</
h1
>
<
ul
id
=
"contactDetailList"
data-role
=
"listview"
data-style
=
"inset"
>
</
ul
>
</
div
>
function
contactShow(e) {
ContactViewModel.LoadContacts();
};
<script id=
"contactDetailtemplate"
type=
"text/x-kendo-template"
>
<a href=
"tel:#:data.MobileNumber#"
>#:data.MobileNumber#</a>
</script>
var
ContactViewModel = kendo.observable({
ContactId:
null
,
TestData: [{ AssociatedContactType:
"n\/a"
, AssociatedProperties: [], EmailAddress:
"n\/a"
, FName:
"User1"
, HomeNumber:
"n\/a"
, LName:
"LastName"
, MobileNumber:
"+27 21 0823219213"
, WorkNumber:
"n\/a"
}],
ContactData:
new
kendo.data.DataSource.create({ data:
this
.TestData }),
LoadContacts:
function
(){
var
templatePart = $(
"#contactDetailtemplate"
).text();
$(
"#contactDetailList"
).kendoMobileListView({
dataSource:
this
.ContactData,
template: templatePart,
endlessScroll:
true
,
scrollTreshold: 30
});
}
});
new kendo.data.DataSource({
transport: {
read: {
url: "json/users/getXForUser/" + userID,
dataType: "json"
},
create: {
url: "json/users/createUpdateX/" + userID,
type: "POST"
},
schema: {
model: {
id: "ID",
fields: {
Site: { }, // this is a combobox result and I want the object back with ID and Name
Role: { } // this is a combobox result and I want the object back with ID and Name
}
}
}
});