RadzenMenuItem, auto close

Is there a way to get the RadzenMenuItem to auto close upon selection? At present, it leaves the menu loaded and a user has to click on the 'x', when using the menu on a small device.

Hi @sahibgora

In your RadzenPanelMenuItem, you can set a Click event as well as the Path. Use this to set SideBarExpanded (or whatever variable you have) to false.

<RadzenPanelMenuItem Click="YourEvent" Text="Products" Path="/products" />

Regards
Paul

Thanks. But I'm using the RadzenMenu, not the RadzenPanelMenu as a horizontal app menu in MainLayout, so this won't work.

My bad. Misread OP :grimacing:

1 Like