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

Security Trimming

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

If the URL to which the TreeView 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 TreeView hides an item if the OnAuthorization method returns HttpUnauthorizedResult.

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

See Also

In this article