pdfExport

Fired when the user initiates the export to PDF.

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 - monitoring the 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>
In this article