expand

Expands the specified node. The argument could be the node jQuery object, HTML Element, or jQuery selector string.

Parameters

node jQuery|Element|String

Specifies the node to be expanded.

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();
    var node = orgChart.items()[1];

    orgChart.expand(node);
</script>
In this article