New to Telerik Reporting? Download free 30-day trial

Hide Sub Report (both Report Header and the Detail Section) if there is no data

Environment

Product Version 12.0.18.416
Product Progress® Telerik® Reporting

Description

How to hide the SubReport if there is no data?

Solution

The reporting generation engine renders a Detail section for each data record. When there is no data, it will not produce any Detail sections. To hide the SubReport Header, use a binding rule to set its Visible property to True only if there is an available data. For example:

= Count(Fields.SomeFieldValue) > 0

In main report, set the height of the SubReport item to 0 (zero). This way it will not occupy space when there is nothing to render in the SubReport.

For more available approaches, please refer to How to hide a SubReport with no data.

In this article