Welcome Guest Search | Active Topics | Sign In | Register

How to add menu items programattically when menu is toolbar custom item Options
Posted: Wednesday, March 10, 2010 1:57:49 PM
Rank: Member
Groups: Member

Joined: 11/13/2009
Posts: 15
Hi,

How do I add EO.Web.Menu items programmatically in page load when the menu is a toolbar custom item?
eo_support
Posted: Wednesday, March 10, 2010 3:51:37 PM
Rank: Administration
Groups: Administration

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

You will need to use something like this to get the Menu first:

Code: C#
EO.Web.Menu menu = (EO.Web.Menu)
    ToolBar1.Items[x].CustomItemInstance.FindControl("Menu1");


Once you have the menu, everything else is the same.

Thanks!
Posted: Wednesday, March 10, 2010 6:06:16 PM
Rank: Member
Groups: Member

Joined: 11/13/2009
Posts: 15
I had omitted the findcontrol on the end. Working now. Thanks for your help.


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.