PDF ExportPremium
The KendoReact TreeList provides options for exporting to PDF.
Getting Started
To enable the PDF export:
-
Install
kendo-react-pdf
package.shnpm i @progress/kendo-react-pdf
-
Import the TreeListPDFExport component in your React Application.
jsximport { TreeListPDFExport } from '@progress/kendo-react-pdf';
-
Wrap the TreeList inside a TreeListPDFExport component.
-
Get the
ref
of the TreeListPDFExport. -
Call the
save
function of the TreeListPDFExport component.
The following example demonstrates the basic implementation of the PDF export functionality of the TreeList.
Configuration
You can control the PDF export configuration through the arguments that are passed to the save
function of the KendoReact PDF Export component.
The TreeListPDFExport enables you to:
Exporting Specific Data
To export specific data, pass the data to the save
function of the TreeListPDFExport component. For example, if the TreeList has its paging enabled but you need to export all pages and all records expanded, pass the processed data to the save
function.
Customizing Exported Columns
The TreeListPDFExport provides the ability to add or hide some of the columns in the exported PDF file. This is done by passing the columns that have to be exported to the save
function.
Known Limitations
For full list of the PDF export known limitations refer to the drawing package.