How to keep open the dropdown menus of the Navbar when click?

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
JoseJM
User
Posts: 2

How to keep open the dropdown menus of the Navbar when click?

Post by JoseJM »

Hello! I'm new in this. I've got the last version.

I would like to know how to maintain open the dropdown menus of the Navbar when you click on them. Is this possible with ASP.NET Maker?

I will thank you any help!


MichaelG
User
Posts: 1095

Post by MichaelG »

You can set Accordion to false in the Menu_Rendering server event. Read:
https://aspnetmaker.dev/docs/#/customsc ... _rendering


JoseJM
User
Posts: 2

Post by JoseJM »

Thank you, MichaelG, but that's not the solution for my problem.

In my Navbar, when I hover with the mouse on the dropdown menus, they expand. But when the mouse is in other place, they collapse automatically. I would like them to maintain expanded when the user clicks: I think this will be more comfortable for users. In fact, in the Bootstrap documentation, when talking about the dropdown menus, they say that "They’re toggled by clicking, not by hovering; this is an intentional design decision".

I will thank you any help!


MichaelG
User
Posts: 1095

Post by MichaelG »

If you are referring to keeping the hovering menu open, I don't think there is such feature in ASP.NET Maker.


Post Reply