New to Telerik UI for Blazor? Download Free 30-day trial
DropDownTree - Flat Data
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Select Employee
- Flat-data.razor
Loading the demo source code...please wait.
Description
When binding a DropDownTree to flat data, all items from all nesting levels must be available in a single collection List<T>. The DropDownTree items must have the following properties set:
IdParentIdHasChildren
The ParentId value of a child item must match the Id value of its parent item. The HasChildren value determines if the parent item renders an expand button.
Use DropDownTreeBindings to define custom names for the above properties.
This Blazor DropDownTree Flat Data example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.