or
function (id) { var child = $("#s-list-objectChild-" + id); var parent = child.closest("[id^='s-list-object-']"); if (parent.isExpanded()) // Perform check here doSomething(); else doSomethingElse();}
$("#editor").kendoEditor({ tools: [ "bold", "italic", "underline", "strikethrough", { name: "fontName", items: [].concat(kendo.ui.Editor.prototype.options.fontName[8], [{ text: "Arial", value: "Arial" }, { text: "Verdana", value: "Verdana" }]), }, { name: "fontSize", items: [].concat(kendo.ui.Editor.prototype.options.fontSize[0], [{ text: "13px", value: "13px" }, { text: "15px", value: "15px" }]) }, "formatting", "foreColor", "backColor", "superscript", "subscript", "justifyLeft", "justifyCenter", "justifyRight", "justifyFull", "insertUnorderedList", "insertOrderedList", "indent", "outdent", "createLink", "unlink", "viewHtml", "createTable", "addRowAbove", "addRowBelow", "addColumnLeft", "addColumnRight", "deleteRow", "deleteColumn"]});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>