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. Simply loading this library with a
<script>
tag will enable compression in PDF, e.g.:<script src="https://unpkg.com/pako/dist/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>