filter String
Specifies ContextMenu filter selector - the ContextMenu will only be shown on items that satisfy the provided selector.
Show the ContextMenu on some elements inside the target
<div id="target">Target
<div class="box"></div>
<div></div>
<div class="box"></div>
</div>
<ul id="context-menu">
<li>Item 1
<ul>
<li>Sub Item 1</li>
<li>Sub Item 2</li>
<li>Sub Item 3</li>
</ul>
</li>
<li>Item 2
<ul>
<li>Sub Item 1</li>
<li>Sub Item 2</li>
<li>Sub Item 3</li>
</ul>
</li>
</ul>
<script>
$("#context-menu").kendoContextMenu({
target: "#target",
filter: ".box"
});
</script>