Welcome Guest Search | Active Topics | Sign In | Register

Menu control, Red Tabs, horizontal alignment Options
Stijn Redant
Posted: Wednesday, October 24, 2007 1:48:28 AM
Rank: Newbie
Groups: Member

Joined: 10/24/2007
Posts: 4
Hello,

I use the menu control Red Tabs. My problem is that i can not get a horizontal second level. My menu-items appears vertical (in the second level). How can i get them horizontal.

in my Menu table I have menuId, parentmenuId, sequence, depthLevel, Description, URL

here I get my data:

private void BuildMenu()
{
DataSet ds = dal.IntranetMenu.ListMenu(Language);
DataColumn MenuId = ds.Tables[0].Columns["Id"];
DataColumn ParentMenuId = ds.Tables[0].Columns["ParentMenuId"];
DataRelation r = ds.Relations.Add(MenuId, ParentMenuId);
r.Nested = true;
Menu.DataSource = ds;
Menu.DataBind();

}
The sequences and the depths are ok, except that the second level is vertical instead of horizontal.

Can anybody hep me?

Stijn
eo_support
Posted: Wednesday, October 24, 2007 7:06:55 AM
Rank: Administration
Groups: Administration

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

Once you built the menu, do the following:

Code: C#
foreach (MenuItem item in Menu.Items)
{
   item.SubGroup.Orientation = Orientation.Horizontal;
}


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.