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

Docking to right side of header section not working

3 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thys
Top achievements
Rank 1
Thys asked on 26 Aug 2014, 11:05 AM
Our requirement is to display a logo on the right side of the report header. Putting a panel in the header and aligning it to the right only works during design time. If the report layout is changed while viewing from portrait to landscape, the logo does not stay docked to the right edge.

1. Is this a limitation of the docking mechanism?
2. Is there a plan to fix it?
3. Is there any workaround for this we can do in the code (manually update the position based on some event)?

3 Answers, 1 is accepted

Sort by
0
Hinata
Top achievements
Rank 1
answered on 29 Aug 2014, 07:21 AM
Hi Thys,

What do you mean by "report layout is changed while viewing from portrait to landscape". How do you change the view from portrait to landscape while the report is running?

I did some tests with Docking and setting Anchor and it went well in my case. Read about these properties in this article: http://www.telerik.com/help/reporting/designing-reports-dynamic-layout.html
I hope it helps.
0
Thys
Top achievements
Rank 1
answered on 29 Aug 2014, 07:38 AM
At design time the page setup can be a specific size and layout.

What I refer to is that when the user views the report in the report viewer, there is an option ("Page Setup" in the toolbar) to change the report size and orientation. If a logo or text field is aligned to the right hand side of the header we need it to still be like this after the change to the layout / page size.

The header size does get adjusted properly (it has a border around it in our example, the border always takes up the correct space). However, if we dock something to the right hand side of the header section and subsequently increase the page size (like changing from portrait to landscape) it does not move to be flush against the right side of the increased header.

In our production version we plan to adjust the report size in code. This is because we use column groups which can expand the report width and we need to adjust the page size so that it still appears as one page wide on the generated PDF.






0
Stef
Telerik team
answered on 02 Sep 2014, 03:48 PM
Hi Thys,

We managed to reproduce the problem and it is logged for improvement in our system. Your Telerik points are updated to thank you for reporting the issue.

For the time being, you can set the item's position via binding to its Location or Left property. Consider the example in the attached demo report. Still PageSettings should be changed during the designing of the report or prior to processing it.


Let us know if we can be of any further help for you.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Thys
Top achievements
Rank 1
Answers by
Hinata
Top achievements
Rank 1
Thys
Top achievements
Rank 1
Stef
Telerik team
Share this question
or