append
Appends a new node to the specified parent node. The second argument could be the parent node jQuery object, HTML Element, or jQuery selector string. When a parent is not specified the item will be added as a root item.
Parameters
item Object
Specifies the data for the item to be added.
parent jQuery|Element|String
Specifies the parent item.
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 },
]
});
var orgChart = $("#orgchart").getKendoOrgChart();
var parent = orgChart.items()[1];
orgChart.append({
id: 9,
name: "Added",
title: "Support"
}, parent);
</script>