Page 1 of 1

Sub menu of side menu

Posted: Wed Apr 03, 2024 3:37 pm
by aiden

On my website, there is a side menu, and in the side menu, there are a few buttons that contain submenus. Within those buttons containing submenus, there is also a symbol '<'. When I click on one of those buttons, the submenu opens, and when I click on the word itself, I am redirected to that page.

I want the submenu to be displayed only when I click on the '<' symbol. How can I fix this in the Menu_rendered server event?"


Re: Sub menu

Posted: Fri Apr 05, 2024 8:23 am
by MichaelG

See options of AdminLTE's Treeview plugin, the trigger option should be what you want. As the docs' tip says: you can use any option via the data-attributes.


Re: Sub menu of side menu

Posted: Fri Apr 05, 2024 3:12 pm
by aiden

In which server event can i do that?


Re: Sub menu of side menu

Posted: Sat Apr 06, 2024 3:31 pm
by MichaelG

The treeview is outputted by an Auto JS Template in the _Layout.cshtml, look for data-widget="treeview". Test your code by modifying _Layout.cshtml first. When your code works, you can replace the auto js template by Page_Foot server event.