Welcome Guest Search | Active Topics | Sign In | Register

Resolve menu hover action when there are no subitems Options
FH
Posted: Friday, April 5, 2013 12:21:03 PM
Rank: Newbie
Groups: Member

Joined: 4/5/2013
Posts: 2
Hello,
This should be an easy one. I'm binding a menu control to a dataset. That all works fine, but the top level menu items that have no sub-items are still showing an empty drop down when hovering. I would like them to act just like the "Home" item in the rounded corners example, where there is no empty drop down but clicking on it redirects to a URL.

What properties do I need to set to remove the empty drop down on hover, after my menu is created with a dataset?

I've tried this Menu.Items(0).SubMenuIcon = EO.Web.SubMenuIconSource.None
It doesn't change the hover action.

Thanks for any assistance!
eo_support
Posted: Friday, April 5, 2013 1:08:02 PM
Rank: Administration
Groups: Administration

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

That's strange. It should not do that. Maybe it is not really empty but you have some special items in it (for example, a separator). You can check the menu items AFTER you have populate the menu and see if there are any items. The menu should not behave any differently no matter from which data source it is populated because they all ends up as menu items/sub items in the menu the same way.

Thanks!
FH
Posted: Friday, April 5, 2013 1:38:46 PM
Rank: Newbie
Groups: Member

Joined: 4/5/2013
Posts: 2
There were no submenu items when I checked at runtime. I did find the LookID was set to Auto. I changed it to "None" and the problem went away. I'm not sure if this is masking another issue, or if it was the root cause, but it seems to work.

Menu.Items(0).LookID = "None"

Thanks for your help!
eo_support
Posted: Friday, April 5, 2013 1:50:38 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Ah that's interesting. Anyway thank you very much for the update!


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.