New to Kendo UI for jQuery? Start a free 30-day trial

PdfExport

events

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.

<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>
Not finding the help you need?
Contact Support