appendTo String|jQuery(default: document.body)

The DOM element to which the ContextMenu will be appended. The element needs to be relatively positioned.

Example

<div id="container">Container</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({
        appendTo: "#container"
    });
</script>
In this article