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

Adjusting Footer Text Location

1 Answer 213 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marcus Kellermann
Top achievements
Rank 1
Marcus Kellermann asked on 29 Sep 2011, 07:48 PM
I have a base report class which defines a common header and footer for all reports.  By default the base report is setup as Letter size page in portrait orientation.    It is possible for the reports that inherit the base report class to override the page size and orientation.

My footer has the Page number in the left hand corner and copy right information in the right.  The copy right text box is set with an anchor of the lower right corner and the bottom and to be right aligned  However when a report changes the page orientation or size the copy right text box doesn't move right with the additional width.  

How do I move it to the right when the report changes the page size?

Attached is an image of the issue.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 04 Oct 2011, 04:19 PM
Hello Marcus,

We've already answered your inquiry in the support thread you've opened. Here is the answer in case someone else might search for similar functionality:

"The dock and anchor functionality would be applied only when a child item grows and stretches the container parent item e.g. when the Table item grows at runtime, it would push the detail section to grow and in this case the anchor and dock would kick in. However when the size of the container is changed manually, this does not trigger the anchor and dock i.e. it assumes that you want to increase the anchor between the item and the container just like you would do at design time. This information is available in the Dynamic Layout help article.

Generally as you probably know, reporting solutions work is to view the report as a repeater. Like repeaters, which are used to display a repeated list of data, a report displays data by applying “rules” (or “templates”) to the data and then rendering that data in a layout that’s ultimately designed to be printed and changes to the template at run time are not recommended and might lead to unexpected results.

If you really must do these changes at run time and cannot change your logic, our suggestion is to change the location and/or size of the copy right item when you change the size/orientation of the report. If this is controlled via a report parameter you can use Binding to set the TextBox.Width or TextBox.Location property depending on your landscape report parameter. You will need an user function to return expected type or do any conversions you might need."

Regards,
Peter
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Marcus Kellermann
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or