New to Telerik UI for Blazor? Download Free 30-day trial
ContextMenu - Hierarchical Data
- EDIT IN TELERIK REPL
- Change Theme
Right-click to open Context menu
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.