Menu issue sub menu not working

Sub menu not working

image

I click more items and nothing happens, I copied in the example from

just to troubleshoot.

something somewhere is keeping it from working, completely stuck.

looking for any ideas to help troubleshoot, thanks!

Here is main layout code:

@inherits LayoutComponentBase


@{
    var tenantName = "";
#if DEBUG
if (Security.User.UserName != "Anonymous" && Security.User.UserName != "tenantsadmin" && Security.User.UserName != "Admin")
    {
        tenantName = Security.User?.ApplicationTenant.Name;
    }
#else
    {
        if (Security.User.UserName != "Anonymous" && Security.User.UserName != "tenantsadmin")
        {
            tenantName = Security.User?.ApplicationTenant.Name;
        }
    }
#endif
}

<RadzenDialog />
<RadzenNotification />
<RadzenTooltip />
<RadzenContextMenu />
<RadzenLayout>
    <RadzenHeader>
        <RadzenRow JustifyContent="JustifyContent.Start" AlignItems="AlignItems.Center" Gap="0" Class="rz-px-4" Style="height: 100%;">
            <RadzenColumn Size="9">
                <RadzenStack AlignItems="AlignItems.Center" Orientation="Orientation.Horizontal" Gap="1rem">
                    <RadzenMenu>
                        <RadzenMenuItem Text="More">
                            <RadzenMenuItem Text="Item1"></RadzenMenuItem>
                            <RadzenMenuItem Text="Item2"></RadzenMenuItem>
                            <RadzenMenuItem Text="More items">
                                <RadzenMenuItem Text="More sub items">
                                    <RadzenMenuItem Text="Item1"></RadzenMenuItem>
                                    <RadzenMenuItem Text="Item2"></RadzenMenuItem>
                                </RadzenMenuItem>
                            </RadzenMenuItem>
                        </RadzenMenuItem>
                    </RadzenMenu>
                </RadzenStack>
            </RadzenColumn>
            <RadzenColumn Size="1">
                <RadzenText style="text-align: center; font-weight: bold">@tenantName</RadzenText>
            </RadzenColumn>
            <RadzenColumn Size="2">
                <RadzenProfileMenu Visible="@Security.IsAuthenticated()" Click="@ProfileMenuClick" Style="float: right">
                    <ChildContent>
                        <RadzenProfileMenuItem Path="profile" Icon="settings" Text="Profile" Visible="@(Security.IsAuthenticated() || Security.User?.Name == "tenantsadmin")" />
                        <RadzenProfileMenuItem Path="application-users" Icon="person" Text="Users" Visible="@((Security.IsAuthenticated() && Security.Tenant != null &&
                                                   Security.IsInRole("admin")) || Security.User?.Name == "tenantsadmin")" />
                        <RadzenProfileMenuItem Path="application-roles" Icon="security" Text="Roles" Visible="@((Security.IsAuthenticated() && Security.Tenant != null &&
                                                   Security.IsInRole("admin")) || Security.User?.Name == "tenantsadmin")" />
                        <RadzenProfileMenuItem Path="application-tenants" Icon="account_balance_wallet" Text="Tenants" Visible="@(Security.User?.Name == "tenantsadmin")" />
                        <RadzenProfileMenuItem Text="Logout" Value="Logout" Icon="power_settings_new" />
                    </ChildContent>
                    <Template>
                        @Security.User?.Name
                    </Template>
                </RadzenProfileMenu>
            </RadzenColumn>
        </RadzenRow>
    </RadzenHeader>
    <RadzenBody>
        <RadzenRow Class="rz-mx-auto rz-px-4 rz-pt-2 rz-pt-md-4 rz-pt-lg-6 rz-pt-xl-12 rz-pb-2 rz-pb-lg-12">
            <RadzenColumn Size="12">
                @Body
            </RadzenColumn>
        </RadzenRow>
    </RadzenBody>
</RadzenLayout>

Make sure you are using the latest version:

1 Like

didn't think of that, I update often, did the trick.

thank you.