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

Menu - Orientation

Configurator

Select the orientation of the menu


  • Orientation.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 Menu displays data in a traditional menu-like structure. It allows you to control the orientation of its items. By design, the Menu orientation targets the root items. The children are displayed in additional popups whose position varies depending on the selected orientation.

The configuration is possible through the Orientation parameter of the component. It takes a member of the MenuOrientation enum. The supported orientation options are:

  • Horizontal(default)
  • Vertical

If you choose the horizontal orientation, the Menu will render its root level items horizontally. Their children will be displayed in separate popup elements underneath the corresponding parent. The child items will be visible once the user hovers their parent. As this is the default orientation option, you do not need to explicitly set it.

The vertical orientation will allow you render the root level items vertically. Their children will be displayed in separate popup elements on the right side of the corresponding parent. The child items will again be visible once the user hovers their parent.

The current demo allows you to configure the Menu orientation and test both setups. Use the DropDownList in the Configurator section to apply Horizontal or Vertical orientation of the Blazor Menu and explore the differences.

This Blazor Menu Orientation 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.