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.
|
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
|
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.
|