getCollapsedNodes
Returns a jQuery object containing all nodes that are visible in the widget but not expanded yet.
Parameters
Returns jQuery
A jQuery object containing all loaded collapsed nodes.
Example
<div id="orgchart"></div>
<script>
$("#orgchart").kendoOrgChart({
dataSource: [
{ id: 1, name: "Jane", title: "Boss", expanded: true },
{ id: 2, name: "John", title: "Lead", expanded: false, parentId: 1 },
{ id: 3, name: "Jill", title: "Worker", expanded: true, parentId: 2 },
{ id: 4, name: "James", title: "Worker", expanded: true, parentId: 2 },
]
});
var orgChart = $("#orgchart").getKendoOrgChart();
console.log(orgChart.getCollapsedNodes());
</script>