Welcome Guest Search | Active Topics | Sign In | Register

Menu Control Options
Jim Nelson
Posted: Monday, February 7, 2011 12:46:21 PM
Rank: Member
Groups: Member

Joined: 9/1/2010
Posts: 28
Is there a way to set a menu option Visible="False"?
This is for security to basically modify the menu at run time depending on the "role".

Thanks
eo_support
Posted: Monday, February 7, 2011 12:54:03 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Both the Menu and each MenuItem support Visible property. The MenuItem class also supports AllowRoles property. You can take a look of the reference section for these properties for more details:

http://doc.essentialobjects.com/library/1/eo.web.navigationitem.visible.aspx
http://doc.essentialobjects.com/library/1/eo.web.navigationitem.allowroles.aspx

The Menu's Visible property is inherited from Control class, thus reference for that property is in MS documentation.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.