Menu collapse problem

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
2/16/2011 10:06:20 AM
Gravatar
Total Posts 14

Menu collapse problem

I dont wont to have dynamic tree view menu on my site so I configured my page like this:

<asp:SiteMapDataSource ID="SiteMapData" runat="server" ShowStartingNode="false" />
<asp:SiteMapDataSource ID="PageMapDataSource" runat="server" ShowStartingNode="false" />
<asp:SiteMapDataSource ID="ChildPageSiteMapData" runat="server" ShowStartingNode="false" />
<asp:SiteMapDataSource ID="MySiteMenuData" runat="server" ShowStartingNode="false" StartingNodeOffset="1" />

                    <portal:SiteMenu id="SiteMenu1" runat="server" TopLevelOnly="true"
                        UseTreeView="false" HideMenuOnSiteMap="false" UseSpanInLinks="true"
                        Direction="Horizontal" DynamicDisplayLevels="0"></portal:SiteMenu>

              <portal:PageMenu id="PageMenu1" runat="server" DataSourceId="MySiteMenuData" IsSubMenu="false" StartingNodeUrl="/gamepire/games.aspx"
                        UseTreeView="true" HideMenuOnSiteMap="false" TopLevelOnly="false" UseSpanInLinks="true"
                        DynamicDisplayLevels="3" TreeViewShowExpandCollapse="false" TreeViewExpandDepth="0" />

 

And my site map is:
Home
Games
-Game1
--News1
--Downloads1
-Game2
--News2
--Downloads2

The problem is when I click on my child item that is located on the second level (ex: News1). My page menu item (ex: Game1) collapse, and my child item disappears because of that. I can prevent this by increasing my TreeViewExpandDepth to 1, but then all child items are allways expanded, and I dont wont that. Please help, tnx.

milka

You must sign in to post in the forums. This thread is closed to new posts.