transport.batch.urlString|Function
This option is configurable for the odata-v4 data source
typeinbatchmode.
The odata-v4 batch endpoint to which the request is sent.
If set to a function, the data source will invoke it and use the result as the URL.
Example
<div id="grid"></div>
<script>
var dataSource = new kendo.data.DataSource({
type: "odata-v4",
batch: true,
transport: {
read: {
url: "https://services.odata.org/V4/OData/OData.svc/Products"
},
batch: {
url: function() {
return "https://services.odata.org/V4/OData/OData.svc/$batch";
}
}
},
schema: {
model: {
id: "ID",
fields: {
ID: { type: "number" },
Name: { type: "string" }
}
}
}
});
$("#grid").kendoGrid({
dataSource: dataSource,
editable: true
});
</script>
In this article