How do I make a Kendo Menu open on hover, not on click?

泪湿孤枕 提交于 2019-12-11 15:59:26

问题


I have a Kendo menu as my main menu, with config starting like

@using Kendo.Mvc.UI
@(Html.Kendo().Menu()
    .Name("main-menu")
    .OpenOnClick(false)
    .Items(items1 =>

Finding no other config option, I thought making OpenOnClick false would make some magical OpenonHover true. I want menu items with children to open on hover so that I can get rid of the arrow to the right of the parent menu item text, as there is absolutely no spacing between the arrow and the tick. I have unsuccessfully tried the :before and :after' pseudo-selectors to insert space, to no avail. All I could get inserted was a literal " hehe.


回答1:


Take a look at this jsfiddle. FYI-it's using jQuery, not using Html helper. Hope it's helpful to you.

You can open menu on hover.



来源:https://stackoverflow.com/questions/17311120/how-do-i-make-a-kendo-menu-open-on-hover-not-on-click

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!