New to Telerik UI for ASP.NET Core? Download free 30-day trial
Binding to OData-v4 service
Loading Demo...
- EXAMPLE
- VIEW SOURCE
-
EDIT IN TELERIK REPL
-
Change Theme
default
- Main
- Main Dark
- Nordic
- Ocean Blue
- Purple
- Turquoise
- Main
- Main Dark
- Nordic
- Urban
- Vintage
- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
- Main
- Main Dark
- Opal
- Silver
odata.cshtml
EmployeeViewModel.cs
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
ASP.NET Core TreeList component supports binding to various endpoints. This example illustrates how you can use an OData-v4 service to populate the tree. The main points in the implementation are:
1. Initially requesting only the top level items(root items). In the particular case a bound function is used.
2. Requesting only the child nodes for a given node, on expand, using the id field value defined in the model.