New to Telerik UI for Blazor? Start a free 30-day trial

Treeview Data Binding to Hierarchical Data

Updated on Oct 2, 2026

This article explains how to bind the TreeView for Blazor to hierarchical data.

Before continuing, make sure you are familiar with the TreeView data binding basics.

Hierarchical data means that the child items are provided in a property of the parent item. By default, the TreeView expects this property to be called Items, otherwise set the property name in the ItemsField parameter. If a certain node has non-null child items collection, it will render an expand icon. The HasChildren model property can override this, but it is not required for hierarchical data binding.

The hierarchical data binding approach allows you have separate collections of data or different model types at each TreeView level. Note that the data binding settings are per level, so a certain level will always use the same bindings, regardless of the model they represent and their parent.

Consider the following examples:

Different Types at Each Level

The example below uses two levels of hierarchy, but the same idea applies to any number of levels. You will likely need a separate TreeViewBinding tag for each level with its own field name configuration.

TreeView with different model type at each all level

Example
View Source
Loading ...

Same Model Type on All Levels

The example below uses the default property names in the model (Id, Text, Items), so there is no need to set field parameters in the TreeView configuration.

Experiment with the TreeLevels, RootItems and ItemsPerLevel values below.

TreeView with random number of levels and same model type on all levels

Example
View Source
Loading ...

See Also