Menu Security Trimming - Disabling Items instead of Hiding

2 posts, 1 answers
  1. Natasha
    Natasha avatar
    1 posts
    Member since:
    Apr 2013

    Posted 11 Apr 2013 Link to this post

    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?
  2. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 15 Apr 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top