Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy