Base solution for your next web application
Open Closed

Menu Expanded by Default in V5 #4403


User avatar
0
llarouche created

Hello;

I am using AspNet Zero v5. Prior to version 5 the side bar menus were collapsed by default which is what I would prefer.

I have many menu items and having them expanded is inconvenient. So, I went in and changed it to drop down instead using the new layout options. However, with that option set I can't reach some of the menu items.

How could I have the menus collapsed initially instead of expanded?

Please let me know.

Regards,

Leonard (Dino) Larouche


3 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    hi

    There's a setting for this purpose;

    In MetronicUiThemeCustomizer class there's this property LeftAsideDefaultHiddenAside. LeftAsideDefaultHiddenAside is set by application settings. So basically in database table AbpSettings if the setting with Name="App.UiManagement.Left.DefaultHiddenAside" exists then set Value=True . If there's no record insert the setting with True value.

  • User Avatar
    0
    llarouche created

    Hello Alper;

    Thanks for the response however it isn't the fix I was looking for.

    What I would like is to be able to see the 1st level of the menu but not the 2nd. I would like to have that 2nd level collapsed and have to click the arrow to open up the submenu. For example, I would like to see "Administration" but have to click the arrow so see Organizational Units, Roles, Users, etc...

    Please let me know if you have any suggestion for that or if anyone else does.

    Thanks again.

    Leonard (Dino) Larouche

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @llarouche,

    Thank you for your report, I haven't noticed that at all :). Can you create an issue here so we will fix it for the next release, <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues">https://github.com/aspnetzero/aspnet-zero-core/issues</a>.

    If you want to go with dropdown submenu items, the problem you are facing is fixed here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/665">https://github.com/aspnetzero/aspnet-ze ... issues/665</a>. And the commit for that fix is <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/commit/51f391e58ce515d5dca0392d0f77d1e06764fe6c">https://github.com/aspnetzero/aspnet-ze ... e06764fe6c</a>.