New to Telerik UI for Blazor? Download Free 30-day trial

DropDownTree - Flat Data

  • Flat-data.razor
Loading the demo source code...please wait.
Style in ThemeBuilder
  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming

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:

  • Id
  • ParentId
  • HasChildren

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.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.