• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1559
  • Last Modified:

Show Dynamic sub Menu on Hover of Main Menu

The OnMenuClick event shows the sub menu items when the main menu is clicked.

I would like to show the sub menu items when the mouse hovers over the main menu.

What menu property should I set?

      <asp:Menu ID="Menu1" runat="server"
                            DataSourceID="SiteMapDataSource1"
                            MaximumDynamicDisplayLevels="0" Orientation="Horizontal"
                            OnMenuItemClick ="Menu1_MenuItemClick" >
                            <DataBindings>
                                <asp:MenuItemBinding DataMember="SiteMapNode" TextField="Title" />
                            </DataBindings>
                        </asp:Menu>

Thanks,
0
Dovberman
Asked:
Dovberman
1 Solution
 
guru_samiCommented:
It's because you have set: MaximumDynamicDisplayLevels="0"
Change it as per your sub menu items.
MaximumDynamicDisplayLevels
0
 
DovbermanAuthor Commented:
Thank you.

This is what I needed.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now