November Happy Hour will be moved to Thursday December 5th.

3 level menu

Vote:
 
How can i make Episerver list a 3 level menu instead of 2 levels? I use a PageTree control: ascx fili ollk like this:
ascx.cs looks like this: protected PageTree PageTreeControl; private MenuList _menuListControl; private void Page_Load(object sender, System.EventArgs e) { if(_menuListControl != null) PageTreeControl.DataSource = _menuListControl; if(!IsPostBack) PageTreeControl.DataBind(); } public MenuList MenuListControl { set{_menuListControl = value;} get{return (MenuList)_menuListControl;} } I need healp...)
#12556
Mar 17, 2006 13:55
Vote:
 
Have not tested this myself, but according to SDK: NumberOfLevels (inherited from PageTreeData) Number of levels to show in tree. Sounds like a promising candidate.
#14500
Mar 17, 2006 15:02
Vote:
 
Still won't get the 3 levels to work even with NumberOfLevels!? The menu should look like this menyval:1-1 <- nivå 1 menyval:1-1 menyval:1-2 menyval:2-1 <- nivå 2 menyval:2-2 menyval:3-1 <- nivå 3 menyval:3-2 menyval:3-3 menyval:2-3 menyval:2-4 menyval:2-5 <- nivå 2 menyval:1-3 menyval:1-4 menyval:1-5 menyval:1-6 <- nivå 1 any 1 got code examples for me?
#14501
Mar 17, 2006 15:37
Vote:
 
Like this i mean ;-) menyval:1-1 <- nivå 1 menyval:1-1 menyval:1-2 menyval:2-1 <- nivå 2 menyval:2-2 menyval:3-1 <- nivå 3 menyval:3-2 menyval:3-3 menyval:2-3 menyval:2-4 menyval:2-5 <- nivå 2 menyval:1-3 menyval:1-4 menyval:1-5 menyval:1-6 <- nivå 1
#14502
Mar 17, 2006 15:41
Vote:
 
Here is the solution ;-) Was pretty easy after a little thinking! Now i can have How many levels i want in the menu :)
#14503
Mar 17, 2006 17:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.