kendoContextMenu is not a function Error

3 posts, 0 answers
  1. Bill
    Bill avatar
    4 posts
    Member since:
    Jun 2016

    Posted 03 Aug Link to this post

    I've been trying to add a Context Menu to a TreeView using this example.

    The tree displays fine but the menu code generates an error: $(....).kendoContextMenu is not a function.

    JS files included: 

    <script src="/Scripts/jquery-1.10.2.js"></script>
    <script src="/Scripts/bootstrap.min.js"></script>
    <script src="/Scripts/kendo/kendo.all.min.js"></script>
    <script src="/Scripts/kendo/kendo.aspnetmvc.min.js"></script>

    TreeView and menu:

    <ul id='tree'>
                <li id="11">Item1
                        <li id="1">Item1.1</li>
                        <li id="2">Item1.2 </li>
                        <li id="3">Item1.3 </li>
                <li id="4">Item2</li>
                <li id="5">Item3</li>

    <ul id="menu">

    JS code:

          select: function(event) {
                var $item = $(event.node);
                var id = $item.attr('id');

                            // listen to right-clicks on treeview container
                            target: "#tree",

                            // show when node text is clicked
                            filter: ".k-in",

                            // handle item clicks
                            select: function(e) {
                                var button = $(e.item);
                                var node = $(;
                                alert(kendo.format("'{0}' button clicked on '{1}' node", button.text(), node.text()));



  2. Dimiter Topalov
    Dimiter Topalov avatar
    314 posts

    Posted 04 Aug Link to this post

    Hello Bill,

    I tried to reproduce the issue, but the provided code works as expected:

    Can you please modify it until the error is reproduced, or send us a similar isolated runnable project where it can be observed, so we can inspect what might be causing it?

    Thank you in advance.

    Dimiter Topalov
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
  3. Bill
    Bill avatar
    4 posts
    Member since:
    Jun 2016

    Posted 04 Aug in reply to Dimiter Topalov Link to this post

    Hi Dimiter,

    Thank you for your replay.

    I've found the cause of my problem. I've included a wrong kendo.all.min.js file (older version) in my project.



Back to Top