OData
DevExtreme ASP.NET MVC controls can also operate with an OData service out of the box. To address an OData service, call the DataSource()
method and pass a lambda expression to it. The lambda parameter exposes the OData()
method that configures access to the OData service.
@(Html.DevExtreme().DataGrid()
.DataSource(ds => ds
.OData()
.Version(4)
.Url("http://services.odata.org/V4/Northwind/Northwind.svc/Products")
.JSONP(true)
.Key("ProductID")
.Expand("Category")
)
)