saveAsPDF

Initiates the PDF export and returns a promise. Also triggers the pdfExport event.

Calling this method may trip the built-in browser popup blocker. To avoid that, call this method as a response to an end-user action (for example, a button click).

Returns

Promise—A promise that will be resolved when the export completes. The same promise is available in the pdfExport event arguments.

Example - manually initiate the PDF export

<button id="export">Export to PDF</button>
<div id="propertyGrid"></div>

<script>
  $("#propertyGrid").kendoPropertyGrid({
    model: {
        foo: "bar",
        baz: 5
    },
    width: 500,
    items: [
      {field:"foo", description:"foo property description"}
    ]
  });

  $("#export").click(function(e) {
      var component = $("#propertyGrid").data("kendoPropertyGrid");
      component.saveAsPDF();
  });
</script>
In this article