refresh

Refreshes the current view of the FileManager. Rebinds the data.

Example

<div id="fileManager"></div>
<script>
    var myData = [{
        name: "Folder",
        isDirectory: true,
        hasDirectories: false,
        path: "folder",
        extension: "",
        size: 0,
        createdUtc: new Date(),
        items: [
            {
                name: "Image.jpg",
                isDirectory: false,
                hasDirectories: false,
                path: "folder/Image.jpg",
                extension: ".jpg",
                size: 20,
                createdUtc: new Date(),
            },
            {
                name: "Image2.jpg",
                isDirectory: false,
                hasDirectories: false,
                path: "folder/Image2.jpg",
                extension: ".jpg",
                size: 20,
                createdUtc: new Date(),
            }
        ]}
    ];

    $("#fileManager").kendoFileManager({
        dataSource: myData
    });

    var fileManager = $("#fileManager").data("kendoFileManager");

    fileManager.refresh();
</script>
In this article