Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.26 KB

File metadata and controls

43 lines (31 loc) · 1.26 KB
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

Environment

Product Progress® Telerik® Reporting
Rendering Extension PDF

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 to the first group header section:

Solution

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

PageBreak enum values are as follows:

  • None

  • Before

  • After

  • BeforeAndAfter