Welcome Guest Search | Active Topics | Sign In | Register

Menu Round Corner submenu Items... Options
Bazooka
Posted: Tuesday, January 12, 2010 5:48:46 PM
Rank: Advanced Member
Groups: Member

Joined: 7/3/2009
Posts: 37
I'm using the Menu Rounder Courner example to add a menu item dynamically via C# and it works fine code wise, but the submenu items/surronding box display distorted like there is a css missing. Below is code example while Menu1 is the ID of the menu. MyPlans is the menu item added as the first item on the menu list. I't using the menu-round corner html example code. Is there something I'm missing? Thanks.


EO.Web.MenuItem Item1 = new EO.Web.MenuItem("(");
Item1.LookID= "None";
Item1.Image.Url="00000301";
Item1.Text.Padding.Left=2;
Menu1.Items.Insert(0, Item1);

EO.Web.MenuItem Plans = new EO.Web.MenuItem("MYPLANS");
Plans.LookID = "None";
Menu1.Items.Insert(1, Plans); //Insert into the second position.

EO.Web.MenuItem Item3 = new EO.Web.MenuItem("|");
Item3.LookID = "None";
Item3.Image.Url = "00000303";
Menu1.Items.Add(Item3);

//Lets add the submenus to the MYPLANS menu item.

EO.Web.MenuItem subItem2 = new EO.Web.MenuItem();
subItem2 = Plans.SubMenu.Items.Add("");
subItem2.LookID= "submenu_top";
subItem2.ItemID= "top_border";

EO.Web.MenuItem subItem3 = new EO.Web.MenuItem();
subItem3 = Plans.SubMenu.Items.Add("MySubMenuItem1");

EO.Web.MenuItem subItem4 = new EO.Web.MenuItem();
subItem4 = Plans.SubMenu.Items.Add("MySubMenuItem2");

EO.Web.MenuItem subItem5 = new EO.Web.MenuItem();
subItem5 = Plans.SubMenu.Items.Add("");
subItem5.LookID = "submenu_bottom";
subItem5.ItemID = "bottom_border";
Code: HTML/ASPX
Code: C#
eo_support
Posted: Wednesday, January 13, 2010 9:52:38 AM
Rank: Administration
Groups: Administration

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

Please remove the following line:

Code: C#
Plans.LookID = "None";


Thanks!
Bazooka
Posted: Wednesday, January 13, 2010 10:53:48 AM
Rank: Advanced Member
Groups: Member

Joined: 7/3/2009
Posts: 37
Thanks it worked!


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.