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

Auto Resize height of Silverlight reportviewer in Rad ChildWindow

3 Answers 137 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
danparker276
Top achievements
Rank 2
danparker276 asked on 19 Jun 2011, 07:04 PM

I have my report viewer in a telerik child window and I want to resize the reportviewer based on the size of the child window.
The width of the report viewer will resize automatically when nothing is set.  The Height will continue down the page to where I can't see it.

I'm putting the report viewer in a grid.  I can bind the height to initial Grid height, but it won't resize.

<Grid x:Name="LayoutRoot" Background="White">
                <my:ReportViewer
                                Margin="2 5 2 5" MinHeight="600"
                                 Name="repViewer"
                                Height="{Binding ElementName=LayoutRoot, Path=ActualHeight}"
                                 />
...

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 21 Jun 2011, 04:42 PM
Hi,

Based on your unexpected behavior description and the provided xaml, our suggestion is to remove the ReportViewer.MinHeight property declaration. Generally if your RadWindow has a smaller height than the ReportViewer.MinHeight the report viewer's bottom part will be hidden.

Regards,
Peter
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
danparker276
Top achievements
Rank 2
answered on 21 Jun 2011, 05:25 PM
The min height doesn't make a difference.  Maybe I just need to bind to the height of the child rad window instead of the layoutRoot, but I thought the layoutroot should work.  It's strange that the width works, but not the height.
0
Peter
Telerik team
answered on 23 Jun 2011, 02:35 PM
Hello danparker276,

In our local test leaving the ReportViewer.Height and Width properties to their default value Auto, as expected causes the report viewer to fill it's parent element. Generally if you still experience any troubles we will appreciate if you open a support thread and send us the problematic project to debug locally. 

Best wishes,
Peter
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
danparker276
Top achievements
Rank 2
Answers by
Peter
Telerik team
danparker276
Top achievements
Rank 2
Share this question
or