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" });
console.log(parent.children.data().length); // outputs "1"
var child = parent.children.at(0);
console.log(child.text); // outputs "Child"
</script>
In this article
Not finding the help you need? Improve this article