Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy