Welcome Guest Search | Active Topics | Sign In | Register

How do I access the text of the menuitem selected? Options
ejb
Posted: Thursday, August 23, 2007 1:05:59 PM
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!
eo_support
Posted: Thursday, August 23, 2007 3:47:05 PM
Rank: Administration
Groups: Administration

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

You can use:

something = e.MenuItem.Text.Html

Thanks
ejb
Posted: Thursday, August 23, 2007 9:38:09 PM
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'."


eo_support
Posted: Friday, August 24, 2007 6:26:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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
ejb
Posted: Friday, August 24, 2007 6:38:20 AM
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.
eo_support
Posted: Friday, August 24, 2007 6:48:08 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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=50

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.