Horizontal menu with UseTreeView (false)

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.
5/31/2012 2:07:48 AM
Gravatar
Total Posts 17

Horizontal menu with UseTreeView (false)

Hi there,

it's a tiny e

I just found out that whenever you alter or change UseTreeView="false" and TopLevelOnly="True" 

A style will take effect (<div class="AspNet-Menu-Horizontal" id="ctl00_SiteMenu1_ctl00" style="float: left; "> )

which is float:left (in case my horizontal menu was floated right the menu will be floated left because of that style)

I would say removing it would be better to keep the original style.

However, if the UseTreeView="true" and TopLevelOnly="false" (default case)

it won't be there.

 

Thanks. :)

5/31/2012 4:41:16 AM
Gravatar
Total Posts 17

Re: Horizontal menu with UseTreeView (false)

One important thing i need to add is that when you use UseTreeView="false" and TopLevelOnly="True"

the menu uses another classes which I was using for a second horizontal menu :( and now both are using same classes AspNet-Menu-Horizontal

 

In the default case it does not use AspNet-Menu-Horizontal

now I have to re-arrange my css code :S

5/31/2012 5:31:09 AM
Gravatar
Total Posts 18439

Re: Horizontal menu with UseTreeView (false)

This problem is well known and discussed in the article The Trouble with ASP.NET Menu. This is why we usually use TreeView instead of Menu.

Hope that helps,

Joe

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