Data Binding Overview

Under the hood, the FileManager formats the responses as FileManagerEntry abstractions, which are a transmutation of the FileManagerDataSource schema.

To ensure that the FileManager component processes the files successfully, each of the binding methods that you use must format the responses by using the FileManagerEntry abstraction.

Telerik UI for ASP.NET MVC Ninja image

The Data Binding is part of Telerik UI for ASP.NET MVC, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

    public class FileManagerEntry
    {
        public string Name { get; set; }
        public long Size { get; set; }
        public string Path { get; set; }
        public string Extension { get; set; }
        public bool IsDirectory { get; set; }
        public bool HasDirectories { get; set; }

        public DateTime Created { get; set; }
        public DateTime CreatedUtc { get; set; }
        public DateTime Modified { get; set; }
        public DateTime ModifiedUtc { get; set; }
    }
    model: {
        id: "path",
        hasChildren: "hasDirectories",
        fields: {
            name: {editable: true, type: "String", defaultValue: "New Folder" },
            size: {editable: false, type: "Number"},
            path: {editable: false, type: "String"},
            extension: {editable: false, type: "String"},
            isDirectory: {editable: false, defaultValue: true, type: "Boolean"},
            hasDirectories: {editable: false, defaultValue: false, type: "Boolean"},
            created: { from: "created", type: "Date", editable: false},
            createdUtc: { from: "createdUtc", type: "Date", editable: false },
            modified: { from: "modified", type: "Date", editable: false},
            modifiedUtc: { from: "modifiedUtc", type: "Date", editable: false }
        }
    }

For more information and examples about the data-binding scenarios, see the following articles:

See Also

In this article