<divid="treeview"></div><script>$("#treeview").kendoTreeView({dataSource:[{text:"foo",items:[{text:"bar"}]}],select:function(e){/* The result can be observed in the DevTools(F12) console of the browser. */console.log("Selecting Node: ", e.node);console.log("DataItem: ", e.sender.dataItem(e.node));}});</script>
<divid="treeview"></div><script>functiontree_select(e){/* The result can be observed in the DevTools(F12) console of the browser. */console.log("select", e.node);}$("#treeview").kendoTreeView({dataSource:[{text:"foo",items:[{text:"bar"}]}]});var treeview =$("#treeview").data("kendoTreeView");
treeview.bind("select", tree_select);</script>