I am using below code to populate the content of a panel bar. If I hard code source value to a json string, all works well. But, when I read the source value from a service, no luck. Please refer below for the relevant code.
Thanks for your time and help.
<script>
$(document).ready(function() {
var app = new kendo.mobile.Application(document.body);
$("#viewtitle").html("Navi 4");
var viewModel = kendo.observable({
invitations: new kendo.data.DataSource({
transport: {
read: {
dataType: "json",
url: "http://localhost:8080/NavXzy/rest/SecurityService/getNotifications?emailAddress=hd@bc.ca"
}
}
})
});
kendo.bind($("#invitationsDiv"), viewModel);
$("#invitationsPanelBar").kendoPanelBar({});
});
</script>
Thanks for your time and help.
<script>
$(document).ready(function() {
var app = new kendo.mobile.Application(document.body);
$("#viewtitle").html("Navi 4");
var viewModel = kendo.observable({
invitations: new kendo.data.DataSource({
transport: {
read: {
dataType: "json",
url: "http://localhost:8080/NavXzy/rest/SecurityService/getNotifications?emailAddress=hd@bc.ca"
}
}
})
});
kendo.bind($("#invitationsDiv"), viewModel);
$("#invitationsPanelBar").kendoPanelBar({});
});
</script>