DevExtreme v23.1 is now available.
Explore our newest features/capabilities and share your thoughts with us.
The DataGrid allows you to customize a header and a footer in the exported PDF file. Follow the steps below to configure a header/footer:
Call the exportDataGrid(options) method.
Use the following API to specify header/footer layout settings:
For a header
Use the topLeft object to specify a start position for DataGrid export. This position should be below the header.
For a footer
Use the customDrawCell function to calculate the coordinates of the last right cell of the DataGrid.
Execute a promise after the exportDataGrid(options) method. In this promise, specify position and appearance of the header/footer.