Cross-tab colums completing in other pages

4 posts, 0 answers
  1. Selma
    Selma avatar
    2 posts
    Member since:
    Sep 2018

    Posted 18 Sep 2018 Link to this post

    Is there a way to fix the total width of the cross-tab to force completing the columns in the same line instead of completing them in another page ?

  2. Silviya
    Admin
    Silviya avatar
    350 posts

    Posted 21 Sep 2018 Link to this post

    Hello Selma,

    From the provided screenshots, I understand that the report's layout uses a Crosstab item, and the item has a column higher than the available space in the physical page. 

    The solution is to try shrinking the report item until the additional page disappear. You can also use the report's PageSettings properties to change the physical page size.

    If the issue still persist, open new support ticket and send us the report definition for further investigation and suggestions.

    Regards,
    Silviya
    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
  3. Selma
    Selma avatar
    2 posts
    Member since:
    Sep 2018

    Posted 21 Sep 2018 in reply to Silviya Link to this post

    Hi Silvia,

    Actually the problem is that the number of columns is dynamic so it could be 5 as it could be more, it is changing from a client to another, so I need a way to fix the size of the whole crass-tab to avoid that it exceeds the A4 format and complete some columns in other pages.

    Best regards

  4. Silviya
    Admin
    Silviya avatar
    350 posts

    Posted 25 Sep 2018 Link to this post

    Hi Selma,

    If I understood correctly, you would like to fix the width of the Crosstab and resize the cells width based on the number of Fields.NOM values. Unfortunately, the Table/Crosstab item does not support automatic adjusting of the columns based on the content.

    The TextBox item can only grow vertically to adjust itself to its content but not horizontally - Design Considerations for Report Item Layout
    To achieve the desired behavior you need to add your custom code calculating the width of the columns at run-time. Please note, that we do not have any control of the custom code you add to a report.
    Our strong recommendation is to use Report Designers for building reports. However, for cases like this Telerik Reporting provided a powerful API that you can use for creating reports programmatically. You can create a Table/Crosstab item in Report Designer first and then review the code in .designer.cs file to see the internal report's structure and to modify it according to your needs.

    Another workaround is to use Anchoring - set the Crosstab Anchoring to 'Left, Right', which will force the Crosstab Left and Right edges to always keep their position with respect to the Crosstab parent.


    Regards,
    Silviya
    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
Back to Top