|
Rank: Newbie Groups: Member
Joined: 8/23/2007 Posts: 3
|
Hello. A probably easy question that I have not found an answer to yet...
I have a menu that I am using in place of a standard combo-box, i.e. a single drop down menu with "Item A" thru "Item F" as choices.
How where/can I access the text of the item that has been chosen? i.e. for example the top menu item says "Please make a selection", the user hovers over it and the drop-down appears with the 6 choices. When they select a choice I want to replace the "Please make a selection" with the text of whatever they chose,(much like a regular drop down combo box works), here is my "ItemClick" code, but I need the code fragment to replace "This is a test"
Protected Sub EOPolicyMenu_ItemClick(ByVal sender As Object, ByVal e As EO.Web.NavigationItemEventArgs)
EOPolicyMenu.Items(0).Text.Html = "This is a test" 'Need expression here.
End Sub
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
You can use:
something = e.MenuItem.Text.Html
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 8/23/2007 Posts: 3
|
Thanks, but if I try that I get the error:
"Error 90 'MenuItem' is not a member of 'EO.Web.NavigationItemEventArgs'."
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Please download the latest version. The latest version supports it. With your version you can do:
something = CType(e.NavigationItem, EO.Web.MenuItem).Text.Html
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 8/23/2007 Posts: 3
|
Thanks...that worked.
How do I know if I am eligible to download the latest version? I don't want to uninstall my old one until I know the new one will work with my license.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, Here you go. This FAQ explains how to download the new license key. So you can see if you are eligible for the new version by checking whether you can download the license key for it. http://www.essentialobjects.com/Forum/Default.aspx?g=posts&t=50Thanks
|
|