fromFile

Clears the spreadsheets 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|FileThe file or blob, usually obtained through a file input.

ReturnsPromise a promise that will be resolved when the import operation completes.

Example - import 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
Not finding the help you need? Improve this article