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

Cross-tab colums completing in other pages

3 Answers 310 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Selma
Top achievements
Rank 1
Selma asked on 18 Sep 2018, 10:50 AM
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 ?

3 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 21 Sep 2018, 06:27 AM
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
0
Selma
Top achievements
Rank 1
answered on 21 Sep 2018, 08:14 AM

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

0
Silviya
Telerik team
answered on 25 Sep 2018, 02:01 PM
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
Tags
General Discussions
Asked by
Selma
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Selma
Top achievements
Rank 1
Share this question
or