The code library shows how to use Menu widget to navigate to different views. Menu show/hides menu items depending on the user authentication.
In the project three custom authorize attributes are used:
- AllowAnonymousAttribute - allows the decorated Action method to all users
- GroupAuthorizeAttribute - verifies whether the logged in user is allowed to see this view. This attribute extends default behavior of AuthorizeAttribute and allows to define multiple roles
- CustomUnauthorizedActionResult - this attribute should be used when you want to hide menu item and still navigate to a normal view, which gives some information to the unauthorized users.
The project also shows how to use Menu widget to navigate to different areas.
#####Requirements
Kendo UI Suite and Version | 2012.3.1315 |
jQuery Version | 1.8.2 |
Supported Browsers and Platforms | All support browsers by Kendo UI |
Components/Widgets used | Menu |
ASP.NET MVC | 3.0 |