loaded
Gets or sets the loaded flag of the Node
. Setting the loaded flag to false
allows the reloading of child items.
Example - reload child nodes
<script>
var dataSource = new kendo.data.HierarchicalDataSource({
transport: {
read: {
url: "https://demos.telerik.com/kendo-ui/service/Employees",
dataType: "jsonp"
}
},
schema: {
model: {
id: "EmployeeId",
hasChildren: "HasEmployees"
}
}
});
dataSource.fetch(function() {
var node = dataSource.at(0);
node.load(); // load the child nodes
node.loaded(false); // clear the loaded flag
node.load(); // load the child nodes again
});
</script>