typeString
If set, the data source will use a predefined transport
and/or schema
.
The supported values are:
"odata"
which supports the OData v.2 protocol"odata-v4"
which partially supports
odata version 4
"signalr"
Example - enable OData support
<script>
var dataSource= new kendo.data.DataSource({
type: "odata",
transport: {
read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Orders"
},
pageSize: 20,
serverPaging: true
});
dataSource.fetch(function() {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(dataSource.view().length); // displays "20"
});
</script>
In this article