Welcome Guest Search | Active Topics | Sign In | Register

Menu: Alter NavigationItem.Text.Html within ItemDatabound event Options
Scott L
Posted: Sunday, June 10, 2007 3:25:22 AM
Rank: Member
Groups: Member

Joined: 5/30/2007
Posts: 15
This should be simple but I can't figure out how to modify the menu item text from within the menu's ItemDatabound event.

I can set e.NavigationItem.ToolTip easily but I can't figure out how to modify the current items' NavigationItem.Text.Html property.
eo_support
Posted: Sunday, June 10, 2007 8:35:22 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi Scott,

Thanks for posting your question here. You need to cast e.NavigationItem before you can use it:

Code: C#
EO.Web.MenuItem menuItem = (EO.Web.MenuItem)e.NavigationItem;
menuItem.Text.Html = "something";


BTW: We have improved our online documentation. take a look!

http://www.essentialobjects.com/ViewDoc.aspx

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.