简体   繁体   English

Kendo Treelist上是否可以有Kendo上下文菜单(右键单击菜单)?

[英]Is it possible to have Kendo Context Menu (right click menu) on Kendo Treelist?

I have a Kendo Treelist and now I want to add custom Context Menu on it (right click menu) on it. 我有一个Kendo树列表,现在我想在上面添加自定义上下文菜单(右键菜单)。 Things I have tried: 我尝试过的事情:

$(document).ready(function() {           
    $("#menu").kendoContextMenu({
        // listen to right-clicks on treelist container
        target: "#treelist",
        // show when node text is clicked
        filter: "tr",
        // handle item clicks        
    });
});

Yes, it works. 是的,它有效。 Your code is right. 您的代码是正确的。 See it here 在这里看到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM