locked
Problem using MenuAdapter.vb (4th level menu shows all) RRS feed

  • Question

  • User839692905 posted

    Hi,

     I am using the standard MenuAdapter.vb and Menu.css.

    The problem is whenever my mouse points to the 2nd level, all items from 3rd and also 4th level will be shown. Its illustrated below. How do I prevent the items in Level 4 to show all ?

    Maintenance(Level 1)-->

                          Code Master(Level 2)-->

                                                Global(Level 3) --> Industry(Level 4)                                                          

                                                Asset(Level 3) --> Asset Make(Level 4)

                                                                      --> Asset Model(Level 4)

     Please Help

    Tuesday, July 31, 2007 4:45 AM

Answers

  • User1618900539 posted

     Hi!

    You should add extra css rules for menus that have more than 3 tiers, like you can see in the uncompiled version that can be downloaded instead of the codeplex dll:

    /* Add more rules here if your menus have more than three (3) tiers */
    ul.AspNet-Menu li:hover ul ul ul,
    ul.AspNet-Menu li:hover ul ul ul ul,
    ul.AspNet-Menu li:hover ul ul ul ul ul,
    ul.AspNet-Menu li.AspNet-Menu-Hover ul ul ul,
    ul.AspNet-Menu li.AspNet-Menu-Hover ul ul ul ul,
    ul.AspNet-Menu li.AspNet-Menu-Hover ul ul ul ul ul
    {
        visibility: hidden;
    }

    /* Add more rules here if your menus have more than three (3) tiers */
    ul.AspNet-Menu li li li:hover ul,
    ul.AspNet-Menu li li li li:hover ul,
    ul.AspNet-Menu li li li li li:hover ul,
    ul.AspNet-Menu li li li.AspNet-Menu-Hover ul,
    ul.AspNet-Menu li li li li.AspNet-Menu-Hover ul,
    ul.AspNet-Menu li li li li li.AspNet-Menu-Hover ul
    {
        visibility: visible;
    }

     

    Hope this helps,

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 2, 2007 12:05 AM

All replies

  • User1618900539 posted

     Hi!

    You should add extra css rules for menus that have more than 3 tiers, like you can see in the uncompiled version that can be downloaded instead of the codeplex dll:

    /* Add more rules here if your menus have more than three (3) tiers */
    ul.AspNet-Menu li:hover ul ul ul,
    ul.AspNet-Menu li:hover ul ul ul ul,
    ul.AspNet-Menu li:hover ul ul ul ul ul,
    ul.AspNet-Menu li.AspNet-Menu-Hover ul ul ul,
    ul.AspNet-Menu li.AspNet-Menu-Hover ul ul ul ul,
    ul.AspNet-Menu li.AspNet-Menu-Hover ul ul ul ul ul
    {
        visibility: hidden;
    }

    /* Add more rules here if your menus have more than three (3) tiers */
    ul.AspNet-Menu li li li:hover ul,
    ul.AspNet-Menu li li li li:hover ul,
    ul.AspNet-Menu li li li li li:hover ul,
    ul.AspNet-Menu li li li.AspNet-Menu-Hover ul,
    ul.AspNet-Menu li li li li.AspNet-Menu-Hover ul,
    ul.AspNet-Menu li li li li li.AspNet-Menu-Hover ul
    {
        visibility: visible;
    }

     

    Hope this helps,

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 2, 2007 12:05 AM
  • User839692905 posted

    Rasetti,

     Thanks man...its cool now... :)

    Friday, August 3, 2007 3:42 AM
  • User1618900539 posted

    Excellent! [:D]

    Friday, August 3, 2007 4:00 AM