This is a migrated thread and some comments may be shown as answers.

Menu Security Trimming - Disabling Items instead of Hiding

1 Answer 119 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Natasha
Top achievements
Rank 1
Natasha asked on 11 Apr 2013, 07:00 PM
Hi,
I am using a Kendo UI Menu server wrapper (razor), which enables security trimming based on the Authorize Attribute on the Controller Action (this is an MVC 4 project). When a user is not authorized to access an Action, the Menu Item is not rendered.
I have a requirement to dosplay the Menu Item as disabled (as opposed to hiding it) when the user is not authorized to access it. Ideally, it should also be determined through the Authorize Attribute on the Controller Actions. Is it possible?

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 15 Apr 2013, 11:40 AM
Hello Natasha,

 
The Menu widget with enabled security trimming functionality will hide any unauthorized item. It cannot disable those items. If you need to accomplish this task, then you will need to turn off the security trimming:

.SecurityTrimming(false)
and implement it manually. If you need more help about this custom solution I will suggest you contact our consulting services.

Regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Menu
Asked by
Natasha
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or