In the CrossTab Table I have two columns for each column group and I want those columns to size according to the largest value in the list. I tried to use the CanGrow and CanShrink properties but they don't appear to work. I have set them to True for every column in the table but it still either wraps the text or leaves it too wide. How can I get the column sizes to size properly?
5 Answers, 1 is accepted
0
Hi Bernard,
Each row of a Table/List/Crosstab item has the same height as the cell with the most content. Each row's height is determined depending on the visualized data.
Please elaborate on the report layout and the result in preview, and which items you need to align.
Regards,
Stef
Telerik
Each row of a Table/List/Crosstab item has the same height as the cell with the most content. Each row's height is determined depending on the visualized data.
Please elaborate on the report layout and the result in preview, and which items you need to align.
Regards,
Stef
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

Bernard
Top achievements
Rank 1
answered on 29 Sep 2015, 12:32 PM
The Crosstab has a column group and the column group has two columns. I set all the properties for the column group and the columns to CanGrow and CanShrink. When I bring up the data it keeps all the columns at the size they are set initially and does not grow or shrink according to the max data in them.
0
Hi Bernard,
Items grow only in vertical direction to accommodate their content. Thus the CanGrow and CanShrink properties are applied only for the height of the item.
For more details check Design Considerations for Report Item Layout.
Regards,
Stef
Telerik
Items grow only in vertical direction to accommodate their content. Thus the CanGrow and CanShrink properties are applied only for the height of the item.
For more details check Design Considerations for Report Item Layout.
Regards,
Stef
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

Bernard
Top achievements
Rank 1
answered on 30 Sep 2015, 12:17 PM
How do I then make it grow/shrink horizontally?
0
Hello Bernard,
Columns are not designed to grow horizontally, reports are first rendered with the designed template and assigned data, then the content is measured and paged with the report's PageSettings.
If you have concerns about the different content that may appear in the table item, you can create the Table item at run-time after analyzing the data manually. The recommended approach is to re-use the auto-generated code from existing report's designer.cs(vb) files.
for example, check my post in Displaying Dynamically Generated Columns in Report.
We will appreciate it if you elaborate on the reason to resize columns in width.
Regards,
Stef
Telerik
Columns are not designed to grow horizontally, reports are first rendered with the designed template and assigned data, then the content is measured and paged with the report's PageSettings.
If you have concerns about the different content that may appear in the table item, you can create the Table item at run-time after analyzing the data manually. The recommended approach is to re-use the auto-generated code from existing report's designer.cs(vb) files.
for example, check my post in Displaying Dynamically Generated Columns in Report.
We will appreciate it if you elaborate on the reason to resize columns in width.
Regards,
Stef
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