Edit this page

pdfExport

Fired when the user initiates PDF export.

Event Data

e.sender kendo.ui.Spreadsheet

The widget instance which fired the event.

e.preventDefault Function

If invoked the spreadsheet will not save the generated file.

e.promise Promise

A promise that will be resolved when the export completes.

Example - Monitor export progress

<div id="spreadsheet"></div>
<script>
    $("#spreadsheet").kendoSpreadsheet({
        sheets: [{
            rows: [{
                cells: [{ value: "A" }, { value: "B" }, { value: "C" }]
            }, {
                cells: [{ value: "1" }, { value: "2" }, { value: "3" }]
            }, {
                cells: [{ value: "4" }, { value: "5" }, { value: "6" }]
            }]
        }],
        pdfExport: function(e) {
            e.promise.done(function() {
                alert("Export completed!");
            });
        }
    });

    var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
    spreadsheet.saveAsPDF();
</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