I am using an ASP.NET Menu Control in my website. If the user clicks on a menu item that has sub menus, I would want the menu to stay open and the page to do nothing. Is this possible?
我在我的网站上使用ASP.NET菜单控件。如果用户点击具有子菜单的菜单项,我希望菜单保持打开状态,页面不执行任何操作。这可能吗?
2 个解决方案
#1
0
Set the DisappearAfter
property to -1 and it will wait for the user to click somewhere to close the menu. See the Dynamic Appearance Timing section in the docs.
将DisappearAfter属性设置为-1,它将等待用户单击某处以关闭菜单。请参阅文档中的动态外观时序部分。
The default value is 500 milliseconds. If the value of DisappearAfter is set to 0, pausing outside of the Menu control causes it to disappear immediately. Setting the value to -1 indicates that the pause time should be infinite, and only by clicking outside of the Menu control will the dynamic portion vanish.
默认值为500毫秒。如果DisappearAfter的值设置为0,则暂停菜单控件外部会使其立即消失。将值设置为-1表示暂停时间应该是无限的,只有通过单击Menu控件外部,动态部分才会消失。
#2
0
Setting the menu's RenderingMode property to List results to the desired behavior. However, this messes up the layout of the menu.
将菜单的RenderingMode属性设置为List会将结果设置为所需的行为。但是,这会弄乱菜单的布局。
#1
0
Set the DisappearAfter
property to -1 and it will wait for the user to click somewhere to close the menu. See the Dynamic Appearance Timing section in the docs.
将DisappearAfter属性设置为-1,它将等待用户单击某处以关闭菜单。请参阅文档中的动态外观时序部分。
The default value is 500 milliseconds. If the value of DisappearAfter is set to 0, pausing outside of the Menu control causes it to disappear immediately. Setting the value to -1 indicates that the pause time should be infinite, and only by clicking outside of the Menu control will the dynamic portion vanish.
默认值为500毫秒。如果DisappearAfter的值设置为0,则暂停菜单控件外部会使其立即消失。将值设置为-1表示暂停时间应该是无限的,只有通过单击Menu控件外部,动态部分才会消失。
#2
0
Setting the menu's RenderingMode property to List results to the desired behavior. However, this messes up the layout of the menu.
将菜单的RenderingMode属性设置为List会将结果设置为所需的行为。但是,这会弄乱菜单的布局。