New to Telerik UI for ASP.NET MVC? 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 MVC Authorization. Every action method which is decorated with AuthorizeAttribute checks whether the user is authorized and allows or forbids the request. For more information, refer to the article on ASP.NET MVC Authorization.

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

For more information on using a custom AuthorizeAttribute, refer to this article.

When the Menu items are removed because of lacking permissions, a parent item may be left without any children. For such cases, the Menu provides an option to remove the "orphaned" parent items.

    .SecurityTrimming(s => s.HideParent(true))

See Also

In this article
Not finding the help you need? Improve this article