children

The child kendo.data.HierarchicalDataSource of the node. This field is initialized lazily if the hasChildren field is set or when the load or append methods were called.

Example - get the 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>

Example - sync the child datasource

<script>
var parent = new kendo.data.Node({ text: "Parent" });
parent.append({ text: "Child" }); // add new child node
parent.children.sync();
</script>
In this article
Not finding the help you need? Improve this article