How to prevent a panels visibility from influencing other panels positions?

2 Answers 39 Views
Report Designer - Web Styling
Pascal
Top achievements
Rank 1
Iron
Iron
Pascal asked on 22 Sep 2023, 03:05 AM

I wasted hours trying to figure out what was wrong with my equations until I realized that Telerik moves panels around based on the visibility of other panels.

 

How can I stop this from happening? I want the pixel position of a panel to be static and not be influenced by other panels. 

Instead of posting my report which has a mile long formula for determining the pixel position of several panels, I have found a very simple report to show this issue.

 

Drag and drop four panels next to each other. Set the background of each panel to a different colour.

Set the visibility of one of the middle panels to false and now preview. All panels to the right of the panel in question have now moved left.

 

Setting Panel2 to not be visible

 

 

Leaving Panel2 as visible

 

 

 

2 Answers, 1 is accepted

Sort by
0
Pascal
Top achievements
Rank 1
Iron
Iron
answered on 22 Sep 2023, 01:47 PM

This will require a lot of work but I've found a solution. 

Each panel needs to be nested into a distinct panel that covers the entire section.

 

0
Pascal
Top achievements
Rank 1
Iron
Iron
answered on 22 Sep 2023, 01:52 PM

I'm hoping that there is a better way but I've found one solution.

Each panel that can be made non-visible needs to be wrapped into it's own panel which remains visible. This is not a perfect solution because in PowerPoint each of these "wrapping" pannels are still clickable. 

My "wrapping" pannels have the same size as "detailSection1" but I assume that you could make the wrapping pannel smaller and it shouldn't affect the solution. 

 

 

 

Dimitar
Telerik team
commented on 27 Sep 2023, 10:11 AM

Hello Pascal,

The behavior with the panels moving to the left is expected. Changing the visibility of items at runtime triggers the same effect as items below or on the right side of the hidden item move up or to the left to occupy the space of the hidden item.

For more details on the report layout dynamics, please refer to the Designing the Basic Layout of the Report - Telerik Reporting article.

The workaround with the parent panel item is the only option that can be used in this scenario since in order for the items not to move left, the space must be occupied by something else.

Please let us know if you have any additional questions.

Tags
Report Designer - Web Styling
Asked by
Pascal
Top achievements
Rank 1
Iron
Iron
Answers by
Pascal
Top achievements
Rank 1
Iron
Iron
Share this question
or