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

Can I use RadMenu with multiple sitemaps?

1 Answer 68 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Sid
Top achievements
Rank 1
Sid asked on 21 Oct 2008, 04:28 AM
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!!
Sid

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 21 Oct 2008, 02:25 PM
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,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
Sid
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or