pdfExport

Fires when the user clicks the Export to PDF toolbar button.

Event Data

e.sender kendo.ui.PropertyGrid

The component instance which fired the event.

e.preventDefault Function

If invoked, the PropertyGrid will not save the generated file.

e.promise Promise

A promise that will be resolved when the export completes.

Example - subscribing to the pdfExport event during initialization

<div id="propertyGrid"></div>

<script>
  $("#propertyGrid").kendoPropertyGrid({
    model: {
        details: {
            title: "Title",
            price: 15
        },
        foo: "bar",
        baz: 5
    },
    pdfExport: function(e) {
        /* The result can be observed in the DevTools(F12) console of the browser. */
      console.log("exporting PDF");
    }
  });
  var component = $("#propertyGrid").data("kendoPropertyGrid");
  component.saveAsPDF();
</script>
In this article