Welcome Guest Search | Active Topics | Sign In | Register

Two Level Menu adaptation from "Red Tabs" Options
Brian300
Posted: Saturday, March 13, 2010 2:48:30 AM
Rank: Member
Groups: Member

Joined: 3/13/2010
Posts: 13
Hello,

I am trying to implement a two level menu control. Brand new to EO (just purchased license this week). I read the following forum item and was able to get "most" of the way there:

http://www.essentialobjects.com/forum/postst3536_Web-Menu-Submenu-goes-out-of-the-controol.aspx

I have a couple of minor things about the way I would like the UI to work, but I'm having a couple of more major issues right now (after implementing the code as recommened in the above post):

1) When loading the page, ALL of the dynamically created child menus are visible. After mousing over each top level menu item, they all disappear (except for the last one moused over). I'm sure I have to set the style to display:none by default, but I am having trouble figuring out where I should be doing that at.

2) Currently, clicking on any of the sub-menu items does nothing (when it should navigate me to the item I clicked). I am getting no JavaScript error, just nothing.

I am using a SiteMapDataSource. So my child menus are being created dynamically.

I can provide existing code if needed, just let me know (didn't want to clog up this post if not needed).
eo_support
Posted: Monday, March 15, 2010 9:19:26 AM
Rank: Administration
Groups: Administration

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

Thank you very much for your business. As to your questions:

1. For each child menu there is a Panel control. You would set that Panel's display to none. It will be something like this:

panel.Attributes["style"] = "display:none";

2. Check whether your SiteMapNode contains "url" attribute. You can find a sample site map file here:

http://doc.essentialobjects.com/library/1/menucommon/databinding/populate_datasource.aspx

Look for "Built-in role Support" section.

Please let us know if that resolves the issue.

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.