fromFile

Clears the spreadsheet and populates it with data from the specified Excel (.xlsx) file.

Requires Internet Explorer 10 or a recent version of other browsers. The JSZip library is a prerequisite for the import from file functionality.

Parameters

blob Blob|File

The file or blob that is usually obtained through a file input.

Returns

Promise - A promise that will be resolved when the import operation completes.

Example - importing a file

<input id="file" type="file" />
<div id="spreadsheet"></div>
<script>
    $("#spreadsheet").kendoSpreadsheet();

    $("#file").on("change", function() {
        var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
        spreadsheet.fromFile(this.files[0]);
    });
</script>
In this article