Hello,
After a countless of attempts and adjustements, it is still impossible to retrieve data from a datasource (to load a grid).
I use an API Net.Core that returns JSON (with Odata nugets).
Everything is OK : json is return, callback is triggered (I check with Fiddler 4 of Telerik).
HTML side : I use Odata type for the Transport (I noticed it is impossible to get a callback from my API if I use "webapi" or anything else for instance).
HTML file (body):
<div id="example">
<div id="grid"></div>
<script>
$(document).ready(function () {
var dSource = new kendo.data.DataSource({
type: "odata",
dataType: "json",
serverPaging: true,
serverSorting: true,
pageSize: 12,
transport: {
read: "https://localhost:44363/api/students"
}
});
// read data from the remote service
dSource.read();
var data = dSource.data();
alert(data[0]);
});
</script>
</div>