children
The child kendo.data.FileManagerDataSource
of the node. This field is initialized lazily if the hasChildren
or isDirectory
field is set or when the load
or append
methods were called.
Example
<div id="filemanager"></div>
<script>
$("#filemanager").kendoFileManager({
dataSource: {
data: [
{
name: "Documents",
isDirectory: true,
hasDirectories: true,
size: 0
}
]
}
});
// Access the FileEntry for a directory
var fileManager = $("#filemanager").data("kendoFileManager");
var dataSource = fileManager.dataSource;
var rootEntry = dataSource.at(0);
// Access the children property
console.log("Has children:", rootEntry.hasChildren);
console.log("Children DataSource:", rootEntry.children);
</script>
In this article