expand
Triggered before a subgroup gets expanded.
Event Data
e.node Element
The expanded node
Example - subscribe to the "expand" event during initialization
<div id="treeview"></div>
<script>
$("#treeview").kendoTreeView({
dataSource: [
{ text: "foo", items: [
{ text: "bar" }
] }
],
expand: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("Expand", e.node);
}
});
</script>
Example - subscribe to the "expand" event after initialization
<div id="treeview"></div>
<script>
function tree_expand(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log("Expand", e.node);
}
$("#treeview").kendoTreeView({
dataSource: [
{ text: "foo", items: [
{ text: "bar" }
] }
]
});
var treeview = $("#treeview").data("kendoTreeView");
treeview.bind("expand", tree_expand);
</script>