Add Page Breaks by Group When Exporting the Grid to PDF

Environment

Product Progress Kendo UI Grid

Description

I am exporting a Kendo UI Grid to PDF. How can I add a page break by group, which will change depending on what the user selects? 

Solution

To get the Kendo UI PDF Export to break at each group, use the forcePageBreak selector in the PDF options of the Grid:

pdf: { 
  forcePageBreak: ".k-grouping-row:not(:first-child)"
}

For the complete implementation of this approach, refer to this runnable example.

In this article
Not finding the help you need? Improve this article