navigate
Triggered when the user moves the focus on another node
Event Data
e.node Element
The focused node
Example - subscribe to the "navigate" event during initialization
<div id="treeview"></div>
<script>
$("#treeview").kendoTreeView({
dataSource: [
{ text: "foo", items: [
{ text: "bar" }
] }
],
navigate: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("Navigated to", e.node);
}
});
</script>
Example - subscribe to the "navigate" event after initialization
<div id="treeview"></div>
<script>
function tree_navigate(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("Navigating to", e.node);
}
$("#treeview").kendoTreeView({
dataSource: [
{ text: "foo", items: [
{ text: "bar" }
] }
]
});
var treeview = $("#treeview").data("kendoTreeView");
treeview.bind("navigate", tree_navigate);
</script>