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

ContextMenu - Hierarchical Data

Right-click to open Context menu

  • Hierarchical-data.razor
Loading the demo source code...please wait.

Style in ThemeBuilder

  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming

Description

The Telerik UI for Blazor Context Menu component provides users with an easily accessible shortcut menu of frequently used commands.

One of the main ways to provide data to Context Menu is using hierarchical data. The component rendering stays the same regardless of the data type. Yet, its configuration will be different when using hierarchical or flat data. The current demo targets data binding to hierarchical data.

The hierarchical data means that the collection of child items is provided in a field of its parent's model, unlike when using flat data. That is the Items field by default. If a given node has items, an expand icon will be visible.

The demo above demonstrates a Telerik Blazor Context Menu component that uses hierarchical data.

This ContextMenu Hierarchical 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.