[RESOLVED]Vertical Menu with SiteMap

Hi everybody,

I have a menu control (dynamic) with a sitemap datasource.  It is set to vertical but the sub menu items appear to the right of the root node.

I want the menu to expand vertically.  I can hard code the position with 

DynamicVerticalOffset="X"
DynamicHorizontalOffset="-Y"

But I was wondering is there a better way.

Currently:

Menu > Sub Menu

            Sub Menu

Want:

Menu >

Sub Menu

Sub Menu

Thanks

hi,

Currently:

Menu > Sub Menu

            Sub Menu

Want:

Menu >

Sub Menu

Sub Menu

had you try to set Orientation=”Horizontal”? you can try to use Orientation property, as shown below:

 <asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Orientation="Horizontal" ></asp:Menu>
 <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />

you can also refer to the link below:

ASP.NET Easy Menu – Build from SiteMap

http://www.obout.com/em/build_from_sitemap.aspx

Hope it helps you.

Thanks Happy,

Setting Orientation to Horizontal worked.

I had assumed "Horizontal" would result in:

Menu > Sub Menu | Sub Menu 

Thanks Again.

Leave a Reply