Say I have 4 levels of pagetrees, I want to show only two levels,BUT, when the end user click the 2nd level link, they can expand the tree to the next level. is it possible to do that? There are 'Expendall' and 'NumberOfLevels' on the PageTree properties, when I set Expendall to True, NumberOfLevels to 2, it does look fine, but when u click the 2nd level nod, u can not expand the tree. Any experts could help me with this? Thank you sooooooooooooooooooooooooooooooooo much
- The ExpandAll property definies if all branches should be expanded or if just the "active" branch should be.- The NumberOfLevels sets the max depth of the tree that will ever be shown.
To be able to support your scenario you would probably have to do some coding. It seems like you want something similar to the asp.net menu which can be used with a pagedatasource control, but that control puts out some seriously ugly html.
My starting point would be to use the PageTree and hook up to the pageTree.PageLoader.GetChildrenCallback method and thereby select when I return children to display in the tree.
Hope that this will get you going!