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() {
                /* The result can be observed in the DevTools(F12) console of the browser. */
                console.log("Export completed!");
            });
        }
    });

    var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
    spreadsheet.saveAsPDF();
</script>
In this article
pdfExport
Not finding the help you need?
Contact Support