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
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
0
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.
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
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
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.
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
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
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