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

CanShrink does not work

1 Answer 232 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 28 Nov 2010, 05:44 PM
I have created a new report using Telerik Reporting Q3 2010. In the detail section I have three text boxes stacked above each other, bound to three different fields. The CanGrow and CanShrink is set to true for all. When there is no data for say the bottom text box, I expect that the row height would shrink since the textbox does not render but it does not do so.

Looking for any quick suggestions before spending the time to create an example that could be posted.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 Dec 2010, 06:41 PM
Hi Stephen,

Generally the report sections don't shrink however they expand to accommodate children. Thus our suggestion is to set the section's height to a very small value in the report constructor after the InitializeComponent().

public Report3()
{
    //
    // Required for telerik Reporting designer support
    //
    InitializeComponent();
 
    this.detail.Height = Telerik.Reporting.Drawing.Unit.Pixel(1);
}

Greetings,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
Tags
General Discussions
Asked by
Stephen
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or