我正在尝试在 kendo ui listView 项目上使用 kendo ui contextMenu,但它确实有效,并且没有错误。
//The ListView HTML
<div id="listView"></div>
<div id="pager" class="k-pager-wrap"></div>
<script type="text/x-kendo-template" id="template">
<div class="document">
<img width="65px" height="65px" src="../Content/extensionsIcon/#=FileExtension#.png" alt="#: DocTitle #" />
<h5>#:DocTitle#</h5>
</div>
</script>
//The ContextMenu HTML
<ul id="context-menu">
<li id="download">Download</li>
<li id="remove">Remove</li>
</ul>
$("#context-menu").kendoContextMenu({
target: "#listView .document",
select: function (e) {
}
});