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

Scrolling Contents of a RadDocumentPane

3 Answers 93 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 16 Jul 2010, 12:11 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 16 Jul 2010, 12:13 PM
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
0
Andrew
Top achievements
Rank 1
answered on 16 Jul 2010, 12:18 PM
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?
0
Andrew
Top achievements
Rank 1
answered on 16 Jul 2010, 12:51 PM
I used a Grid instead and it works fine, thanks.
Tags
Docking
Asked by
Andrew
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or