| title | Conditional Page Breaks |
|---|---|
| description | Inserting Page Breaks under certain conditions |
| type | how-to |
| page_title | Inserting Page Breaks |
| slug | conditional-page-breaks |
| res_type | kb |
| Product | Progress® Telerik® Reporting |
| Rendering Extension |
A common report layout includes report groups. Often to visually distinguish these groups, a page break is added to the last group footer section. However, when you have another report section after the group section with PageBreak=After, the design behavior is to push the content to a new page.
This is desired for the different group instances but sometimes, you may want to render a report footer section immediately after the last group footer. In this case, the most straightforward solution is to apply a Binding to the first group header section:
| Property path | Expression |
|---|---|
| PageBreak | = IIF(RowNumber() > 1, 'Before', 'None') |
PageBreak enum values are as follows:
-
None
-
Before
-
After
-
BeforeAndAfter