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_BindingController.cs
  • CategoryItem.cs
  • SubCategoryItem.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

You can define the TreeView’s items for local (on the server) and remote (using a DataSource configuration object) binding.

This example demonstrates the configuration for local binding on the server by passing the appropriate collection to the BindTo() method.

Support & Learning Resources