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
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, Once you built the menu, do the following:
Code: C#
foreach (MenuItem item in Menu.Items)
{
item.SubGroup.Orientation = Orientation.Horizontal;
}
Thanks
|