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
local_data_binding.cshtml
Local_Data_Binding.cs
CategoryItem.cs
SubCategoryItem.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

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.

Support & Learning Resources