Rank: Advanced Member Groups: Member
Joined: 3/23/2010 Posts: 35
|
Hello,
Is there a way to obtain a MenuGroup object that is parent to a MenuItem?
We are using XML files to databind menus. These XML files have not only nodes that describe menu items, but also context nodes that should not be included in menu hierarchy. Current implementation simply hides them using Visible property. Better approach would be to remove them from hierarchy when data binding, but I need to access parent MenuGroup to do that.
Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You will need to cast this property to a MenuItem to get the parent item: http://doc.essentialobjects.com/library/1/eo.web.navigationitem.parentnavigationitem.aspxOnce you have the parent item, you can access the parent item's SubMenu property to get the parent group. Thanks!
|
Rank: Advanced Member Groups: Member
Joined: 3/23/2010 Posts: 35
|
Thanks. Somehow I missed SubMenu property.
|