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. Authorization in MVC is controlled through the AuthorizeAttribute attribute and its various parameters. At its simplest applying the AuthorizeAttribute attribute to a controller or action limits access to the controller or action to any authenticated user. For more information, refer to the article on ASP.NET MVC Authorization.

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

This GitHub project is representing the usage of the AuthorizeAttribute.

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


See Also

In this article