New to Kendo UI for jQueryStart a free 30-day trial

Schema

configuration

The schema configuration. See the DataSource.schema configuration for all available options.

schema

Object
<div id="filemanager"></div>
<script>
$("#filemanager").kendoFileManager({
    dataSource: new kendo.data.FileManagerDataSource({
        schema: {
            model: {
                id: "name",
                fields: {
                    name: { type: "string" },
                    size: { type: "number" },
                    path: { type: "string" },
                    extension: { type: "string" },
                    isDirectory: { type: "boolean" }
                }
            }
        },
        data: [
            { name: "Folder 1", size: null, path: "Folder 1", extension: "", isDirectory: true },
            { name: "File 1.txt", size: 1024, path: "File 1.txt", extension: ".txt", isDirectory: false }
        ]
    })
});
</script>
Object|kendo.data.FileEntry

The data item (model) configuration. See the DataSource.schema.model configuration for all available options.

The model must inherit from kendo.data.FileEntry.

<div id="filemanager"></div>
<script>
$("#filemanager").kendoFileManager({
    dataSource: new kendo.data.FileManagerDataSource({
        schema: {
            model: kendo.data.FileEntry.extend({
                id: "name",
                fields: {
                    name: { type: "string" },
                    size: { type: "number" },
                    path: { type: "string" },
                    extension: { type: "string" },
                    isDirectory: { type: "boolean" },
                    dateCreated: { type: "date" },
                    dateModified: { type: "date" }
                }
            })
        },
        data: [
            { name: "Documents", size: null, path: "Documents", extension: "", isDirectory: true, dateCreated: new Date(2023, 0, 1), dateModified: new Date(2023, 5, 15) },
            { name: "report.pdf", size: 2048576, path: "Documents/report.pdf", extension: ".pdf", isDirectory: false, dateCreated: new Date(2023, 2, 10), dateModified: new Date(2023, 3, 5) }
        ]
    })
});
</script>
In this article
schemaschema.model
Not finding the help you need?
Contact Support