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

CanGrow and CanShrink in CrossTab Table

5 Answers 505 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bernard
Top achievements
Rank 1
Bernard asked on 25 Sep 2015, 02:14 PM
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

Sort by
0
Stef
Telerik team
answered on 28 Sep 2015, 08:13 AM
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
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
Stef
Telerik team
answered on 30 Sep 2015, 09:38 AM
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
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
Stef
Telerik team
answered on 02 Oct 2015, 03:08 PM
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
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
Bernard
Top achievements
Rank 1
Answers by
Stef
Telerik team
Bernard
Top achievements
Rank 1
Share this question
or