Scrolling Contents of a RadDocumentPane

4 posts, 1 answers
  1. Andrew
    Andrew avatar
    104 posts
    Member since:
    May 2008

    Posted 16 Jul 2010 Link to this post

    Hi, I have the following markup:

    <telerikDocking:RadDocking>
        <telerikDocking:RadSplitContainer x:Name="searchSplitContainer"  Orientation="Horizontal" InitialPosition="DockedBottom" telerikDocking:DockingPanel.InitialSize="350,350" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible">
            <telerikDocking:RadPaneGroup x:Name="searchPaneGroup" Visibility="Collapsed" OverflowMode="Scroll" ScrollViewer.HorizontalScrollBarVisibility="Visible"  ScrollViewer.VerticalScrollBarVisibility="Visible">
                <telerikDocking:RadDocumentPane x:Name="searchDocumentPane" Title="Search" CanFloat="false" CanUserClose="False" CanUserPin="True" CanDockInDocumentHost="false">
                    <telerikDocking:RadDocumentPane.Content>
                        <StackPanel Background="Transparent" Orientation="Vertical">
                            <local:CustomGrid  x:Name="searchGrid" CanUserSelect="False" CanUserInsertRows="false" AutoGenerateColumns="false" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" RowDetailsVisibilityMode="Collapsed">
                            </local:CustomGrid>
                            <telerik:RadButton x:Name="SearchButton" Content="Search" Click="SearchButton_Click" Width="100" HorizontalAlignment="Right">
                            </telerik:RadButton>
                        </StackPanel>
                    </telerikDocking:RadDocumentPane.Content>
                </telerikDocking:RadDocumentPane>                   
            </telerikDocking:RadPaneGroup>
        </telerikDocking:RadSplitContainer>
    </telerikDocking:RadDocking>

    And the contents of the RadDocumentPane will never scroll (scrollbars never appear) no matter how large the grid gets. Any ideas as to what's causing this?

    I also noticed the contents of the panes in this example never scroll either: http://demos.telerik.com/silverlight/#Docking/FirstLook
  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 16 Jul 2010 Link to this post

    Hi Andrew,

     This is due to the StackPanel - will measure the grid with infinity height.

    Regards,
    Vlad
    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. Andrew
    Andrew avatar
    104 posts
    Member since:
    May 2008

    Posted 16 Jul 2010 Link to this post

    Is there a way to include both the grid and the button in the Content of the RadDocumentPane without using the StackPanel and still allow for scrolling?
  5. Andrew
    Andrew avatar
    104 posts
    Member since:
    May 2008

    Posted 16 Jul 2010 Link to this post

    I used a Grid instead and it works fine, thanks.
Back to Top