New to Telerik UI for ASP.NET Core? Download free 30-day trial
Binding to local data
Loading Demo...
- EXAMPLE
- VIEW SOURCE
- Edit in Theme Builder
-
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
local_data_binding.cshtml
Local_Data_Binding.cs
CategoryItem.cs
SubCategoryItem.cs
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
The Telerik DropDownTree for ASP.NET Core supports local (on the server) and remote (using a DataSource configuration object) binding.
This example illustrates binding to local data by passing the appropriate collection to the BindTo() method. After passing the data to the view using ViewData, the DropDownTree is added to the view and bound to the data saved under ViewData.