New to Telerik UI for ASP.NET Core? Download free 30-day trial

Security Trimming

The Telerik UI Menu has a built-in security trimming functionality which is enabled by default.

If the URL to which the Menu item points is not authorized, the item is hidden.

Security trimming depends on the ASP.NET Core Authorization. Every action method which is decorated with AuthorizeAttribute checks whether the user is authorized and allows or forbids the request.

The Menu hides an item if the OnAuthorization method returns UnauthorizedResult.

For more information, refer to the article on ASP.NET Core Authorization.

The security trimming functionality can be enabled through the SecurityTrimming property.

    Html.Kendo().Menu()
        .Name("MainMenu")
        .SecurityTrimming(true)
    <kendo-menu name="menu" security-trimming="true">
    </kendo-menu>

This GitHub project represents the usage of the AuthorizeAttribute.

See Also

In this article