New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core Grid OData Binding

  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
Order IDFreightOrder DateShip NameShip City
1024832.3807/04/2020Vins et alcools ChevalierReims
1024911.6107/05/2020Toms SpezialitätenMünster
1025065.8307/08/2020Hanari CarnesRio de Janeiro
1025141.3407/08/2020Victuailles en stockLyon
1025251.307/09/2020Suprêmes délicesCharleroi
1025358.1707/10/2020Hanari CarnesRio de Janeiro
1025422.9807/11/2020Chop-suey ChineseBern
10255148.3307/12/2020Richter SupermarktGenève
1025613.9707/15/2020Wellington ImportadoraResende
1025781.9107/16/2020HILARION-AbastosSan Cristóbal
10258140.5107/17/2020Ernst HandelGraz
102593.2507/18/2020Centro comercial MoctezumaMéxico D.F.
1026055.0907/19/2020Ottilies KäseladenKöln
102613.0507/19/2020Que DelíciaRio de Janeiro
1026248.2907/22/2020Rattlesnake Canyon GroceryAlbuquerque
10263146.0607/23/2020Ernst HandelGraz
102643.6707/24/2020Folk och fä HBBräcke
1026555.2807/25/2020Blondel père et filsStrasbourg
1026625.7307/26/2020Wartian HerkkuOulu
10267208.5807/29/2020FrankenversandMünchen
HtmlHelper
TagHelper
Files:
odata.cshtml
OdataController.cs
OrderViewModel.cs
Odata_TagHelper.cshtml

Also available for:

CLIENT-SIDE API HTML HELPER API

Description

OData (Open Data Protocol) is an ISO/IEC approved, OASIS standard that defines a set of best practices for building and consuming REST APIs. The protocol enables the creation of REST-based services which allow resources which are identified by using Uniform Resource Locators (URLs) and defined in a data model to be published and edited by Web clients using simple HTTP messages.

The ASP.NET Core DataGrid enables you to bind it to an oData service, as demonstrated by this example. To implement the binding approach, specify .Type("odata") so that the requests can be sent to the oData endpoint in the expected format and out of the box.

Additional Apps

This Grid example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources