This is a migrated thread and some comments may be shown as answers.

Resize parent panel if child element is not visible

3 Answers 53 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 10 Feb 2017, 10:30 AM

Dear Telerik team

 

Our report layout is according to the images in the appendix and displays a list with mechanical checkpoints:

- tableCheckpoint (always displayed)

- panelSpareparts (only visible if Fields.Parts.Count > 0)

- panelImage (only visible if Fields.ImageRows.Count > 0)

 

Further:

- All dockings are set to "Top"

- The parent panel "panelCheckpoint" has a binding for Height: = '12mm'

 

The parent panel "panelCheckpoint" is resizing correctly except for the case panelImage = visible and panelSpareparts = not visible (see image).

I tried to set "panelCheckpoint" binding Height by formula (to a manually calculated value) but if the Height value is smaller than '12mm' the list is not showing all checkpoints (is this a bug?).

Any suggestion what I should do?

Thanks and regards

Markus

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 13 Feb 2017, 12:44 PM
Hi Markus,

As of R3 2016, sections and Panel item support CanShrink allowing them to collapse if there is no content.
In case of using older version, you will have to verify elements are organized correctly in Panel items, allowing them to move up if space is freed. Then you can apply a binding to the container's Height property to make it shrink based on the content.

For more details, please check How Report Items are Arranged in a Section and Visibility.


I hope this helps.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Markus
Top achievements
Rank 1
answered on 15 Feb 2017, 07:35 AM

Hello Stef,

We use Version R3 2016 SP1 (10.2.16.1025) and CanShrink is enabled on all Panel...

Regards,

Markus

0
Stef
Telerik team
answered on 15 Feb 2017, 11:41 AM
Hi Markus,

In such case, you can work with the sections and Panel items' CanShrink properties. Also reset all Docking and Anchoring properties and use only the items Location and Size properties. The idea is that items preserve the space between them, and when there is freed space items can occupy the space automatically.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
Markus
Top achievements
Rank 1
Answers by
Stef
Telerik team
Markus
Top achievements
Rank 1
Share this question
or