Height on pageheader section

5 posts, 0 answers
  1. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 28 Apr 2009 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 30 Apr 2009 Link to this post

    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.
  3. DevCraft banner
  4. Chris
    Chris avatar
    6 posts
    Member since:
    Jul 2008

    Posted 20 May 2009 Link to this post

    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
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 21 May 2009 Link to this post

    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.
  6. Raymond
    Raymond avatar
    13 posts
    Member since:
    Sep 2013

    Posted 29 Feb in reply to Steve Link to this post

    Thanks Steve! I know your post in years old, but I just came across it today and your solution worked great.
Back to Top
DevCraft banner