Can I use RadMenu with multiple sitemaps?

2 posts, 0 answers
  1. Sid
    Sid avatar
    18 posts
    Member since:
    Oct 2007

    Posted 20 Oct 2008 Link to this post

    Good Evening,

    I am developing a site that has a public portion of it, as well as a Restricted folder with 4 subfolders in it.  I have enabled membership and roles, setup roles for each of the 4 user groups, and added securitytrimmingEnabled = true to a custom sitemap provider in my root web.config.  My web.sitemap file references the other sitemaps by name.

    Nonetheless, when I run the site locally the menu choices are not trimmed and all user roles can see all menu choices. 

    Has anyone been able to make this type of scenario work?  If so, I would be most grateful if you could share how you did it.

    Thanks much!!
  2. Peter
    Peter avatar
    6637 posts

    Posted 21 Oct 2008 Link to this post

    Hello Sid,

    The security trimming feature should work with all RadControls which support binding to SiteMapDataSource (toolbar, menu, tabstrip etc).

    If you are using custom implementation of users and roles you need to programmatically remove or hide the items which should not be visible. Also Scott Mitchell wrote a nice tutorial with source code. 

    All the best,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
Back to Top