expand
Expands collapsed nodes.
Parameters
nodes jQuery|Element|String
The nodes that are to be expanded.
Example
<div id="treeview"></div>
<script>
$("#treeview").kendoTreeView({
dataSource: [
{ text: "foo", items: [
{ text: "bar" }
] },
{ text: "baz", items: [
{ text: "biz" }
] }
]
});
var treeview = $("#treeview").data("kendoTreeView");
// expand the item with text "foo"
treeview.expand(treeview.findByText("foo"));
// expand all loaded items
treeview.expand(".k-treeview-item");
</script>