Hello,
I am pretty new to kendo ui and i am trying to get a simple example to work. I have created a REST based web service using asp.net web api which returns IQueryable<> ( so supposedly it supports odata). I can verify that it returns data using a browser.
I have another page in the same application that has a kendo grid in which i am trying to display data returned from the service, the code is
<div id="body">
<div id="grid"/>
@Scripts.Render("~/bundles/jquery")
<script src="../Scripts/Kendo/kendo.all.min.js" type="text/javascript"></script>
<script src="../Scripts/Kendo/kendo.web.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#grid").kendoGrid(
{
dataSource:
{
type: "odata",
transport:
{
read: "http://localhost/MSDNWebApi/Api/Movie"
}
}
})
});
</script>
</div>
I can confirm using chrome's development tools that the there are no errors and all the requests from the server are working. I can also confirm that the service is returning json data when the kendo ui makes the call, however the ui does not display any data..
I read somewhere that it needs a jsonp format, but i am hoping that its only needed for cross domain conversation.
any help will be appreciated.
Attached the output from the service....
thanks
I am pretty new to kendo ui and i am trying to get a simple example to work. I have created a REST based web service using asp.net web api which returns IQueryable<> ( so supposedly it supports odata). I can verify that it returns data using a browser.
I have another page in the same application that has a kendo grid in which i am trying to display data returned from the service, the code is
<div id="body">
<div id="grid"/>
@Scripts.Render("~/bundles/jquery")
<script src="../Scripts/Kendo/kendo.all.min.js" type="text/javascript"></script>
<script src="../Scripts/Kendo/kendo.web.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#grid").kendoGrid(
{
dataSource:
{
type: "odata",
transport:
{
read: "http://localhost/MSDNWebApi/Api/Movie"
}
}
})
});
</script>
</div>
I can confirm using chrome's development tools that the there are no errors and all the requests from the server are working. I can also confirm that the service is returning json data when the kendo ui makes the call, however the ui does not display any data..
I read somewhere that it needs a jsonp format, but i am hoping that its only needed for cross domain conversation.
any help will be appreciated.
Attached the output from the service....
thanks