select

Triggered when the user attempts to select a new node or group of nodes (in grouped scenario). Preventable.

Event Data

e.sender kendo.ui.OrgChart

The OrgChart instance that triggered the event.

e.item jQuery

The item element that is about to be selected.

e.dataItems Array

The data item(s) of the node(s) that are about to be selected.

e.preventDefault Function

If invoked prevents selection.

Example

<div id="orgchart"></div>

<script>
    $("#orgchart").kendoOrgChart({
        dataSource: [
            { id: 1, name: "Jane", title: "Boss", expanded: true },
            { id: 2, name: "John", title: "Lead", expanded: true, parentId: 1 },
            { id: 3, name: "Jill", title: "Worker", expanded: true, parentId: 2 },
            { id: 4, name: "James", title: "Worker", expanded: true, parentId: 2 },
        ],
        select: function(e) {
            e.preventDefault();
        }
    });
</script>
In this article
Not finding the help you need? Improve this article