SubNode to appear beside a parent node

Topics: Web Client Software Factory
Jul 5, 2007 at 3:13 PM

I am displaying my menu in a TreeView so that all 5 parent nodes are listed vertically.

I then added an additional 6th node to one of the parent nodes using the MapBuilderService.AddNode(moduleNode, parentNode) overload method.

However, I now want this new 6th subnode to appear horizontally rather than underneath the parent node. In other words, when a user mouses over the parent node, I want another menu to appear to the right of it and not beneath it.

Is there a way that I can do this?

Thank you,

Jul 5, 2007 at 7:56 PM
Hi!

Maybe you could use the ASP’s Menu control (http://msdn2.microsoft.com/en-us/library/ecs0x9w5(vs.80).aspx), instead of TreeView. You can add this in your Default.master to see if it works for you:

<asp:Menu ID="NavigationMenu" runat="server" DataSourceID="ApplicationSiteMap" Orientation="Vertical" />

Hope it helps!

Luciano G. Panaro
http://staff.southworks.net/lpanaro
Jul 5, 2007 at 8:51 PM
Thanks lgpanaro ! I had no idea it would be that simple. I thought I would have to change the MapBuilderService. Whew !