Dear Community,
For last few hours, I have been trying to populate the grid with remote data coming from a ASP.Net web service. The data returned is in JSON format.
But the problem is that grid is not getting populated with the result. In fact, if I open the fiddler, I don't see any corresponding http request to my web service that will fetch the data.
Here is what I have:
I in fact, tried fetching data in a variable as well, but even that is not working.
Can you please help me, what I'm doing wrong here?
Cheers,
Shiva
For last few hours, I have been trying to populate the grid with remote data coming from a ASP.Net web service. The data returned is in JSON format.
But the problem is that grid is not getting populated with the result. In fact, if I open the fiddler, I don't see any corresponding http request to my web service that will fetch the data.
Here is what I have:
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: {
type: "json",
transport: {
contentType: "application/json; charset=utf-8",
type: "POST"
}
},
pageSize: 10,
serverPaging: true,
serverFiltering: true,
serverSorting: true
});
});
I in fact, tried fetching data in a variable as well, but even that is not working.
var dataSource = new kendo.data.DataSource({
transport: {
read: {
// the remote service url
contentType: "application/json; charset=utf-8",
type: "POST",
dataType: "json
}
}
});
Can you please help me, what I'm doing wrong here?
Cheers,
Shiva