We are in the very start of a Web API using the new OData v4 specification.
Still, I'm not sure about how Kendo can handle v4 OData.
So far, test following the example in http://demos.telerik.com/kendo-ui/grid/remote-data-binding, and I have been asked if there have been support to OData v4 at all.
The closest we got required some work around like this:
$(document).ready(function () {
dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "http://localhost/SAC.OData/Municipio",
dataType: "json",
type: "GET",
beforeSend: function (req) {
req.setRequestHeader('Accept', "application/json;odata.metadata=none");
}
}
},
schema: {
data: "value",
model: {
id: "Id"
}
},
pageSize: 20,
serverPaging: true,
serverFiltering: true,
serverSorting: true
});
$("#grid").kendoGrid({
dataSource: dataSource,
filterable: true,
sortable: true,
pageable: true,
columns: [
{ field: "Id" },
{ field: "Nome" }]
});
});
I need to know if there is support for OData v4 specification, or wel'll have to fallback to the v3.
Best regards
Still, I'm not sure about how Kendo can handle v4 OData.
So far, test following the example in http://demos.telerik.com/kendo-ui/grid/remote-data-binding, and I have been asked if there have been support to OData v4 at all.
The closest we got required some work around like this:
$(document).ready(function () {
dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "http://localhost/SAC.OData/Municipio",
dataType: "json",
type: "GET",
beforeSend: function (req) {
req.setRequestHeader('Accept', "application/json;odata.metadata=none");
}
}
},
schema: {
data: "value",
model: {
id: "Id"
}
},
pageSize: 20,
serverPaging: true,
serverFiltering: true,
serverSorting: true
});
$("#grid").kendoGrid({
dataSource: dataSource,
filterable: true,
sortable: true,
pageable: true,
columns: [
{ field: "Id" },
{ field: "Nome" }]
});
});
I need to know if there is support for OData v4 specification, or wel'll have to fallback to the v3.
Best regards