Article information
Article relates to
Telerik Reporting up to R3 2016
Created by
Peter
Last modified
25 October 2016
Last modified by
Stef
<IMPORTANT: As of R3 2016 report sections and Panel item have CanShrink property. By turning on the CanShrink property sections/items will collapse, if their content is hidden or with smaller height.> PROBLEM Collapse the container when hiding child report items. SOLUTION Telerik Reporting report items behavior is to grow, but they can't shrink. In order to collapse the parent container(section or panel) when you hide some of its child items, you have to set the container Height property to a very small initial value. This way, the container will grow if it have child items otherwise the container will take virtually no space. For the purpose, you need to set container Height with Binding as shown in the following example:
Property path
Expression
Height
="1px"
The expression part can be set via user function. Additionally, check the Design Considerations for Report Item Layout help article.
Resources Buy Try