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

ReportViewer window is not resizing

2 Answers 120 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gilbert van Veen
Top achievements
Rank 1
Gilbert van Veen asked on 12 Aug 2010, 03:22 PM
Can some explain why my ReportViewer Height is not changing according the heigt of my RadWindow?

When I change the horizontal size the reportviewer changes as it should be. When I change my vertical heigt then it doesn't change?

Header="Report window" WindowStartupLocation="CenterScreen" Top="-5" Width="550" Height="539" ResizeMode="CanResize">
    <Grid x:Name="LayoutRoot" VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <!--<RowDefinition Height="478"/>-->
            <RowDefinition Height="*"/>
            <RowDefinition Height="27"/>
        </Grid.RowDefinitions>
  
        <Telerik_ReportViewer_Silverlight:ReportViewer x:Name="ReportViewer" HorizontalAlignment="Stretch" VerticalContentAlignment="Stretch" Height="475" Grid.Row="0" ReportServerUri="../ReportService.svc" 
            Report="GaSuiteReportLib.EmergencyReport, GaSuiteReportLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"  ZoomPercent="80" VerticalAlignment="Top"/>
          
        <Button x:Name="OKButton" Grid.Row="1" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,0,3"/>
          
    </Grid>

For some reason the ReportViewer height of 475 stays. I have also changed this into * etc. but that won't help me?

2 Answers, 1 is accepted

Sort by
0
Accepted
Chavdar
Telerik team
answered on 13 Aug 2010, 01:06 PM
Hello Gilbert van Veen,

There is a Height attribute set to the report viewer and most likely this is causing the problem:

<Telerik_ReportViewer_Silverlight:ReportViewer x:Name="ReportViewer" HorizontalAlignment="Stretch" VerticalContentAlignment="Stretch" Height="475" Grid.Row="0" ReportServerUri="../ReportService.svc"
    Report="GaSuiteReportLib.EmergencyReport, GaSuiteReportLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"  ZoomPercent="80" VerticalAlignment="Top"/>


Best wishes,
Chavdar
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
Gilbert van Veen
Top achievements
Rank 1
answered on 13 Aug 2010, 01:44 PM
Many thanks,

Just missed that one!
Tags
General Discussions
Asked by
Gilbert van Veen
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Gilbert van Veen
Top achievements
Rank 1
Share this question
or