pdf.landscape Boolean
(default: false)
If set to true
, reverses the paper dimensions in such a way that the width becomes the larger edge.
Example - enabling the landscape mode
<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: {
landscape: true
},
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>