# Conditional Page Breaks

## Environment

<table>
	<tr>
		<td>Product</td>
		<td>Progress® Telerik® Reporting</td>
	</tr>
  	<tr>
		<td>Rendering Extension</td>
		<td>PDF</td>
	</tr>
</table>

## Description

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](https://www.telerik.com/products/reporting/documentation/designing-reports/connecting-to-data/expressions/using-expressions/bindings) to the first group header section:

## Solution

| Property path | Expression                                 |
| ------------- | ------------------------------------------ |
| PageBreak     | `= IIF(RowNumber() > 1, 'Before', 'None')` |

[PageBreak enum values](https://www.telerik.com/products/reporting/documentation/api/telerik.reporting.pagebreak) are as follows:

* None

* Before

* After

* BeforeAndAfter
