append

Appends a new item to the children data source and initializes it if necessary.

Parameters

model Object|kendo.data.Node

The data for the new item.

Example - append child nodes

<script>
var parent = new kendo.data.Node({ text: "Parent" });
parent.append({ text: "Child" });
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(parent.children.data().length); // outputs "1"
var child = parent.children.at(0);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(child.text); // outputs "Child"
</script>
In this article