在不可选择的节点上显示箭头
我有一个带有以下数据绑定的数据绑定 ASP.net 菜单
<DataBindings>
<asp:MenuItemBinding TextField="title" ToolTipField="description" NavigateUrlField="url" SelectableField="AsLink" />
</DataBindings>
现在,任何变得不可选择的节点也会丢失其箭头,即使它有子节点也是
如此,为什么会这样以及我们如何解决这个问题?
我看到了一些使用 StaticEnableDefaultPopOutImage
的建议。
也不应该,因为它的目的是根据 msdn
获取或设置一个值,指示是否显示内置图像以指示静态菜单项有子菜单
我的问题与静态和动态节点相同,在不可选择的情况下
我正在使用.NET 4.0
I have a databound ASP.net menu with the following databindings
<DataBindings>
<asp:MenuItemBinding TextField="title" ToolTipField="description" NavigateUrlField="url" SelectableField="AsLink" />
</DataBindings>
Now any node which becomes non selectable also loses its arrow, even if it has children
Why is that and how can we remedy this?
I have seen some suggestions to use StaticEnableDefaultPopOutImage
.
Neither should it, as its purpose is according to msdn
Gets or sets a value indicating whether the built-in image is displayed to indicate that a static menu item has a submenu
And my issue is equally with static and dynamic nodes, in case of non-selectability
I'm using .NET 4.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是,菜单控件在静态菜单项锚点 (
) 元素 (
style="cursor: text"
) 上添加了样式,而实际上它不是可选,因此您需要手动更改它。更改静态菜单样式的 CSS,以便轻松找到正确的锚元素:
将 Jquery 脚本添加到页面末尾以更改菜单项的指针:< /p>
The problem is that the Menu control adds a style on the static menu item anchor(
<a>
) element (style="cursor: text"
) when it is not selectable so you need to manully change it.Change the Css for your Static Menu Style to make it easy to find the right anchor elements:
Add a Jquery script to the end of the page to change the pointer for the menu items: