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

ScrollViewer.HorizontalScrollBarVisibility="Auto"

1 Answer 214 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
thomas
Top achievements
Rank 1
thomas asked on 21 Jun 2010, 09:10 AM

       Hello!  you may have a look at the attach.why the horizontal scrollbar can't auto hide? how to solve this problem ?

          

<Telerik:RadTreeView Name="_treeView" ScrollViewer.VerticalScrollBarVisibility="Auto"  ScrollViewer.HorizontalScrollBarVisibility="Auto"  SelectionMode="Extended" ExpanderStyle="{StaticResource Expander}" local:TreeViewHelper.EnableRightClickSelection="True" MouseRightButtonDown="_treeView_MouseRightButtonDown" PreviewMouseRightButtonDown="_treeView_PreviewMouseRightButtonDown">  
            <telerikNavigation:RadContextMenu.ContextMenu > 
                <telerikNavigation:RadContextMenu  x:Name="radTreeViewMenu">  
                    <telerikNavigation:RadMenuItem Header="View In Master Document" Tag="View in Master Document"/>  
                    <telerikNavigation:RadMenuItem Header="Show PDF" Tag="SHOW PDF" IsEnabled="False"/>  
                    <telerikNavigation:RadMenuItem Header="Show PDF AT Division" Tag="Show PDF AT Division" IsEnabled="False"/>  
                    <telerikNavigation:RadMenuItem Header="Copy Division" Tag="Copy Division" IsEnabled="False"/>  
                    <telerikNavigation:RadMenuItem Header="Job Ticket" Tag="Job Ticket" IsEnabled="False"/>  
                </telerikNavigation:RadContextMenu> 
            </telerikNavigation:RadContextMenu.ContextMenu> 
</Telerik:RadTreeView> 

If you see this message,please reply as soon as possible.I 'm very anxious. Thanks my friend.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 21 Jun 2010, 01:56 PM
Hello Thomas,

Please, accept our apologies for this inconvenience. We aware of this issue and was added to our public issue tracking system
 [http://www.telerik.com/support/pits.aspx#/public/silverlight/483].

I can propose the following workarounds:

    First: You can remove horizontal scrollbar when you set the property 
              ScrollViewer.HorizontalScrollBarVisibility="Hidden" of RadTreeViewControl.

    Second: If you don't need virtualization, you can change the ItemsPanel property of RadTreeViewItem. 

  Please find attached a project that demonstrates how to change the panel.

If you have further  questions please do not hesitate to ask us.

I hope this will help you.


All the best,
Dimitrina
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
Tags
TreeView
Asked by
thomas
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or