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.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
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.aspxThanks
|