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
>