Centering items on the page

5 posts, 0 answers
  1. Stargazer
    Stargazer avatar
    73 posts
    Member since:
    Jan 2007

    Posted 07 Oct 2009 Link to this post

    Hello!

    I have a question concerning the positioning of items on the report page. First, my scenario:

    - One report wich has the Page Header section, 2 groups, Detail Section with a subreport inside it, Page Footer section;
    - The sub report has only a crosstab in the report header section, with page header, report footer, page footer, detail sections invisible.

    My problem is how to make the crosstab appear always centered in the report pages... Is there a way to do this?

    Thanks and regards!
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 08 Oct 2009 Link to this post

    Hi Stargazer,

    It depends on whether you're talking about horizontal or vertical centering i.e. textbox items can grow only in vertical direction and thus they cannot be centered vertically, as they would grow dynamically based on the provided data.
    The Crosstab item can grow both ways - horizontally and vertically. You can center it in the report designer, but if you have dynamic row groups and dynamic column groups, it would grow in runtime in both directions and thus it would not be centered.

    All the best,
    Steve
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Stargazer
    Stargazer avatar
    73 posts
    Member since:
    Jan 2007

    Posted 09 Oct 2009 Link to this post

    Hello Steve (and everyone)!

    Maybe I didn't explain myself in the best of ways. :)

    What I would like to accomplish is to make the crosstab, which is dynamic and may get any number of columns and rows, to always get centered in the page, despite the size of it.

    If I understand correctly, I can't do that by setting properties, is this right?

    Regards!
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 09 Oct 2009 Link to this post

    Hi Stargazer,

    Your assumption is correct. And since we do not know what the size of the crosstab would be until it is rendered, there is no way to control that programmatically either. Your inquiry makes sense so we would put a thought on it for a future release.

    Regards,
    Steve
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Stargazer
    Stargazer avatar
    73 posts
    Member since:
    Jan 2007

    Posted 09 Oct 2009 Link to this post

    And another thing that would be very cool is to make the crosstab object be able to maintain a predefined width, adjusting the size of the columns inside it, allowing with this to make sure it would not grow outside the page bounds...

    I'll be looking forward to see the next releases of Telerik Reporting!

    Regards!
Back to Top
DevCraft banner