Edit this page


Shows the ContextMenu at the specified coordinates in pixels or aligned to the specified anchor. If passed an item, it will be opened. This method can be prevented to stop the ContextMenu from opening.


<div id="target">Target</div>
<ul id="context-menu">
    <li id="Item1">Item 1
            <li>Sub Item 1</li>
            <li>Sub Item 2</li>
            <li>Sub Item 3</li>
    <li>Item 2
            <li>Sub Item 1</li>
            <li>Sub Item 2</li>
            <li>Sub Item 3</li>
    // initialize the ContextMenu
        target: "#target"
    // get a reference to the ContextMenu widget
    var contextMenu = $("#context-menu").data("kendoContextMenu");
    // open the ContextMenu at 100px, 100px
    contextMenu.open(100, 100);


x Number |Element |jQuery

X coordinate in pixels or the anchor element to which to align. If passed an item - jQuery object or element - it will be opened.

y Number optional

Y coordinate in pixels. If not specified, ContextMenu will assume the first parameter is an anchor element.


kendo.ui.ContextMenu Returns the ContextMenu object to support chaining.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article