Base solution for your next web application
Open Closed

Menu arrangement #2042


User avatar
0
sison created

Hi,

What should i do if i have Sub Menus! is there any option to show sub menus with permission??


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

    Hi,

    When you get the menu using IUserNavigationManager's GetMenuAsync method, it will retrieve only granted menu items. It works for sub menu items as well.

  • User Avatar
    0
    sison created

    Dont know how to implement sub menus under main menu with navigation provider, is my problem! not with the permission. please give me an example to show sub menus under a menu?? :!: :!:

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can do it like this:

    .AddItem(new MenuItemDefinition(
        "Administration",
        L("Administration"),
        icon: "icon-administration"
        ).AddItem(new MenuItemDefinition(
            "Users",
            L("Users"),
            url: "AreaName/Users",
            icon: "icon-users"
            )
        )
    )