Page 1 of 1

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

Posted: Wed May 31, 2023 5:39 pm
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!


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

Posted: Thu Jun 01, 2023 7:38 am
by MichaelG

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


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

Posted: Thu Jun 01, 2023 9:26 pm
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!


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

Posted: Fri Jun 02, 2023 8:01 am
by MichaelG

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