ReportViewer window is not resizing

3 posts, 1 answers
  1. Gilbert van Veen
    Gilbert van Veen avatar
    70 posts
    Member since:
    Oct 2009

    Posted 12 Aug 2010 Link to this post

    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. Answer
    Chavdar
    Admin
    Chavdar avatar
    898 posts

    Posted 13 Aug 2010 Link to this post

    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
  3. Gilbert van Veen
    Gilbert van Veen avatar
    70 posts
    Member since:
    Oct 2009

    Posted 13 Aug 2010 Link to this post

    Many thanks,

    Just missed that one!
Back to Top