Auto Resize height of Silverlight reportviewer in Rad ChildWindow

4 posts, 0 answers
  1. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 19 Jun 2011 Link to this post

    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}"
                                     />
    ...

  2. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 21 Jun 2011 Link to this post

    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
  3. DevCraft banner
  4. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 21 Jun 2011 Link to this post

    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.
  5. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 23 Jun 2011 Link to this post

    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
Back to Top