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

Height on pageheader section

6 Answers 502 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 28 Apr 2009, 07:50 AM
Hi,
I load text dynamically to the pagehader section, but I don't know how much text there is.
When there is a lot of text it hides behind the detail section.
Is there a property or a way to make the pageheader to autogrow in height depending on the amount of text or how can it be solved?

Regards,
Mattias

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Apr 2009, 03:46 PM
Hello Mattias,

Page headers/footers are not related to the report itself, but are relative to the margins of the report's media, i.e. to the paper or screen. For this reason they are strict and cannot change their size dynamically. What you can do is create additional group without group criteria (unbound group), set the PrintOnEveryPage=true and use it as a header instead (you should not have PageHeader or ReportHeader).

Regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Chris
Top achievements
Rank 1
answered on 20 May 2009, 07:59 PM
Hi Steve

I had the same problem. I tried your soloution out, but it didnt work. I have a group-header section where I display some textboxes (from top to bottom). The property 'PrintOnEveryPage' is set to true. In some cases not all textboxes are displayed. In such a case the group-header section should shrink, but it dosn't. How can I do it?

Thanks for your answert!

Daniel
0
Steve
Telerik team
answered on 21 May 2009, 09:57 AM
Hi Daniel,

My suggestion does work as I've described. Your case of missing items is not touched on my previous post and this won't work in any section, because report section can only grow to fit their children - they cannot shrink. The height of the group header section would be equal for all pages of the report and even if you manually alter its height (which is wrong), it would be reflected on all pages i.e. it would cut off your visible items on other pages, which makes pointless my suggestion as you get the same problem as with default page header and footer.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Raymond
Top achievements
Rank 1
answered on 29 Feb 2016, 07:46 PM
Thanks Steve! I know your post in years old, but I just came across it today and your solution worked great.
0
Collin
Top achievements
Rank 1
answered on 20 Mar 2018, 03:29 PM
My team is interested in this issue as well. Since this thread is nearly 10 years old, is it still the case that headers and footers do not support CanGrow?
0
Katia
Telerik team
answered on 22 Mar 2018, 12:02 PM
Hi Collin,

The behavior of the page sections is pretty much the same now. Page section can be hidden, however, it cannot grow depending on the inner content. The approach suggested by Steve is still valid:
" What you can do is create additional group without group criteria (unbound group), set the PrintOnEveryPage=true and use it as a header instead (you should not have PageHeader or ReportHeader)."


Regards,
Katia
Progress Telerik
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
General Discussions
Asked by
Mattias
Top achievements
Rank 1
Answers by
Steve
Telerik team
Chris
Top achievements
Rank 1
Raymond
Top achievements
Rank 1
Collin
Top achievements
Rank 1
Katia
Telerik team
Share this question
or