Welcome Guest Search | Active Topics | Sign In | Register

Manual Menu selection Options
testing32
Posted: Monday, October 29, 2007 8:47:49 AM
Rank: Newbie
Groups: Member

Joined: 10/29/2007
Posts: 4
Hey,
I'm having a problem selecting an Item in EO.Web.Menu. The autoselection works great as long as the URLs match. But, I'm having a problem getting the menuitem to select(or appear selected) if the URLs are completely different. The menu is populated from a sitemap and Menu.Items is empty.

eo_support
Posted: Monday, October 29, 2007 8:59:40 AM
Rank: Administration
Groups: Administration

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

For that you would need to do it by code. Just find the correct item to be selected and then set its Selected to True. For example,

Menu1.Items[0].Selected = true;

Would set the first top level item as selected. Setting one item as selected does not affect other items.

When you populate it from site map, try to call DataBind before you access Items property. That should give you all the items.

Thanks
testing32
Posted: Monday, October 29, 2007 10:19:25 AM
Rank: Newbie
Groups: Member

Joined: 10/29/2007
Posts: 4
That worked out great. I can't believe I forgot about the databind.

Thanks for your speedy response.


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.