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

[Solved] Treeview's vertical scrollbar is missing

1 Answer 269 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
WaspDeveloper
Top achievements
Rank 1
WaspDeveloper asked on 15 Apr 2009, 10:08 PM
Hello,

I used Rad docking panel, in one of the panes I added a treeview, which at the time, the tree view's scrollbar shows up correctly when I expand items.

Then I also need to put in a button in that panel, so I put the treeview inside a stackpanel. after that, the treeview's scrollbar is gone.

I knew I did something wrong but couldn't figure out what. please help. Thanks....  Christina

 
<Grid x:Name="LayoutRoot" Background="White">  
                  
        <radDock:RadDocking> 
            <radDock:RadDocking.DocumentHost> 
                <radDock:RadSplitContainer> 
                    <radDock:RadPaneGroup> 
                        <radDock:RadDocumentPane Header="MainFunctions" Title="MobileAsset">  
                            <StackPanel x:Name="stackPanel">  
                                <TextBlock x:Name="NameLabel" Width="1000" HorizontalAlignment="Center" FontSize="20" Text="Default Text" TextAlignment="Center"></TextBlock> 
                                <TextBlock x:Name="NameLabel2" Width="1000" HorizontalAlignment="Center" FontSize="20" Text="Default Text" TextAlignment="Center"></TextBlock> 
 
                            </StackPanel> 
                        </radDock:RadDocumentPane> 
                    </radDock:RadPaneGroup> 
                </radDock:RadSplitContainer> 
 
            </radDock:RadDocking.DocumentHost> 
 
            <radDock:RadSplitContainer x:Name="Splitter" InitialPosition="DockedBottom" SizeChanged="MainNavigator_SizeChanged" 
                                       Height="230">  
                <radDock:RadPaneGroup TabStripPlacement="Bottom">  
                    <radDock:RadPane x:Name="radPaneApprovals" Header="Approval List" IsPinned="True">  
                        <StackPanel x:Name="stackPanelApprovals">  
 
                            <radNavigation:RadTreeView x:Name="tvApprovalList" IsTriStateMode="True" SelectionMode="Extended" IsLineEnabled="True" 
                                                       ItemsOptionListType="CheckList" IsOptionElementsEnabled="True"   
                                                       Checked="RadTreeViewItem_Checked" 
                                                       BorderBrush="DarkBlue" BorderThickness="5">  
                               <radNavigation:RadTreeViewItem Header="Asset Requisition" IsExpanded="True" CheckState="On" IsSelected="False">  
                                   <radNavigation:RadTreeViewItem Header="AR 090325-05"/>  
                                   <radNavigation:RadTreeViewItem Header="AR 090401-11"/>  
                                   <radNavigation:RadTreeViewItem Header="AR 080412-01"/>  
                               </radNavigation:RadTreeViewItem> 
                               <radNavigation:RadTreeViewItem Header="Asset Type Requisition" IsExpanded="True" CheckState="On" IsSelected="False">  
                                   <radNavigation:RadTreeViewItem Header="TR 080315-45"/>  
                                   <radNavigation:RadTreeViewItem Header="TR 090401-41"/>  
                                   <radNavigation:RadTreeViewItem Header="TR 080412-02"/>  
                                   <radNavigation:RadTreeViewItem Header="TR 080412-03"/>  
                                   <radNavigation:RadTreeViewItem Header="TR 080412-04"/>  
                                   <radNavigation:RadTreeViewItem Header="TR 080412-05"/>  
                                </radNavigation:RadTreeViewItem> 
                            </radNavigation:RadTreeView> 
                              
                        </StackPanel> 
                          
                              
                          
                    </radDock:RadPane> 
                </radDock:RadPaneGroup> 
                  
            </radDock:RadSplitContainer> 
 
 
        </radDock:RadDocking> 
    </Grid> 

 


1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 16 Apr 2009, 11:06 AM
Hi Chris,

If you want the ScrollBar of the RadTreeView to be visible, you have to put it in a Grid instead of a StackPanel. I am attaching a sample project which demonstrates a RadTreeView control with a visible ScrollBar.

Best wishes,
Dimitrina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
WaspDeveloper
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or