Edit this page

pdf.allPages Boolean (default: false)

Exports all grid pages, starting from the first one.

Note: Chrome is known to crash when generating very large PDF-s. A solution to this is to include the Pako library, which is bundled with Kendo as pako_deflate.min.js. Simply loading this library with a <script> tag will enable compression in PDF, e.g.: <script src="http://kendo.cdn.telerik.com/2018.3.1017/js/pako_deflate.min.js"></script> The allPages export is not supported when virtual scrolling is enabled.

Example - export all pages

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  toolbar: ["pdf"],
  columns: [
    { field: "name" }
  ],
  dataSource: {
    data: [{ name: "Jane Doe"},
           { name: "John Doe"},
           { name: "Tim Doe"},
           { name: "Alice Doe"}],
    pageSize: 2
  },
  pdf: {
    allPages: true
  }
});
var grid = $("#grid").data("kendoGrid");
grid.saveAsPDF();
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy