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
But I was wondering is there a better way.
Menu > Sub Menu
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
Hope it helps you.
Setting Orientation to Horizontal worked.
I had assumed "Horizontal" would result in:
Menu > Sub Menu | Sub Menu