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

Menu - Appearance

  • Appearance.razor
Loading the demo source code...please wait.

Style in ThemeBuilder

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


To apply conditional styling on its items based on a certain criteria, use the OnItemRender event of the Menu. The OnItemRender event fires for each node when it is about to render. It allows you to set a Class for each li element based on an arbitrary condition. For example, in this demo, the OnItemRender event is used to apply an on-hover style only to items without children.
This Blazor Menu Appearance 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.