pdf.allPages Boolean (default: false)

Exports all TreeList 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="https://kendo.cdn.telerik.com/2021.3.1109/js/pako_deflate.min.js"></script>

Example - export all pages

<div id="treelist"></div>
<script>
  $("#treelist").kendoTreeList({
    toolbar: ["pdf"],
    columns: [
      { field: "FirstName", title: "First Name" },
      { field: "LastName", title: "Last Name", width: 160 },
      { field: "Position" }
    ],
    pdf: {
        allPages: true
    },
    pageable: {
      pageSize: 10
    },
    dataSource: {
      transport: {
        read: {
          url: "https://demos.telerik.com/kendo-ui/service/EmployeeDirectory/All",
          dataType: "jsonp"
        }
      },
      schema: {
        model: {
          id: "EmployeeID",
          fields: {
            parentId: { field: "ReportsTo",  nullable: true },
            EmployeeID: { field: "EmployeeId", type: "number" },
            Extension: { field: "Extension", type: "number" }
          },
          expanded: true
        }
      }
    }
  });
</script>
In this article
Not finding the help you need? Improve this article