This is a migrated thread and some comments may be shown as answers.

Trouble with kendo.all.min.js

0 Answers 153 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Randy Hompesch
Top achievements
Rank 1
Randy Hompesch asked on 26 Jul 2013, 01:24 PM

Hi,
I created a new Kendo UI for MVC application.
Dropped a KendoTreeview on my layout view.
All is well.
I add the following js code shown below to handle the select event.
When I select a node, I get the error shown in the attached screenshot.
I did some searching on the web, and it suggested that I had the wrong version of Jquery.
I am currently running Kendo 2013.2.716 and jquery 1.9.1. I tried 1.8.2 and 2.0 of jquery but still get the same result.
Any help would be appreciated.

<script type="text/javascript" >
 
    function _LayoutOnLoad()
    {
        $(function ()
        {
            var tv = $("#MainMenu").kendoTreeView(
                {
                    select: OnMainMenuSelect
 
                });
        });
 
 
    }
    function OnMainMenuSelect(e)
    {
        //alert("Selecting: " + this.text(e.node));
        alert("Selecting: " + e.node.contentText);
    }
    </script>

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Randy Hompesch
Top achievements
Rank 1
Share this question
or