getSize

Gets the size of the FileManager wrapper.

Returns

Object The width and height of the FileManager wrapper in pixels.

Example

<div id="fileManager"></div>
<script>
    var baseUrl = "https://demos.telerik.com/service/v2/core/filemanager/";

    $("#fileManager").kendoFileManager({
        width: 800,
        height: 600,
        dataSource: {
            transport: {
                read: {
                    method: "POST",
                    url: baseUrl + "Read"
                }
            }
        }
    });

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

/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log("Width: " + size.width + ", Height: " + size.height);
</script>
In this article
getSize
Not finding the help you need?
Contact Support