I've tried setting ScrollViewer.VerticalScrollBarVisibility="Auto" in the xaml, but I get a runtime exception "Unknown attribute ScrollViewer.VerticalScrollBarVisibility on element RadTreeView".
I may still be naive regarding automatic layout in Silverlight. I want my controls (in general) to expand to the height of the browser. The parent UserControl views of this tree (and there are several) general have their Height attribute set to "Auto".
15 Answers, 1 is accepted
Check out this forum thread:
http://www.telerik.com/community/forums/silverlight/treeview/treeview-scrollviewer.aspx
Update:
The link above does not work, if you have questions about scrolling in the TreeView, post them here.
All the best,
Valentin.Stoychev
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.
I have my treeview inside a grid.
You can enable the vertical scrollbar of RadTreeView in code behind in this way:
treeView.SetValue(System.Windows.Controls.ScrollViewer.VerticalScrollBarVisibilityProperty, ScrollBarVisibility.Visible);
I hope that this answers your question.
Sincerely yours,
Boryana
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.
I have a Treeview with Horizontal & Vertical Scrolling enabled.
However, after populating the Tree with Data, I cann't see the Last node(Bottom node) of the Tree as it comes behind the the Horizontal scrollbar.
I have tried all possibilities but I cann't make it.
Pls help.
Regards
Kabs
Thank you for the feedback. We are aware of this issue.
It is already fixed and the change will be reflected in the this week internal build which is tomorrow.
Regards,
Boryana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I checked the forum link and indeed, it does not work anymore. The thread may have been converted to a support ticket.
Are you seeing any issues with the scrolling in the TreeView?
Normally the vertical ScrollBar in the TreeView may not appear if it is placed in panels that do not constrain its size (for example if any of its parents is a vertical StackPanel).
All the best,
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Is this resolved with the latest binaries?
thanks
We are currently not aware of any problems regarding the scrolling in the RadTreeView. Please let us know if you experience any.
Greetings,
Valentin.Stoychev
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.
Are you talking about the RadPanelBar control? I assume yes, if not please let us know.
In order to achieve what you want you have to set the VerticalAlignment to "Stretch" of the RadPanelBar. If this is not working - please open a new support ticket and attach a sample project where we can advise you better.
All the best,
Valentin.Stoychev
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.
<telerik:RadSplitContainer x:Name="radSplitContainerLeft" VerticalAlignment="Stretch" Orientation="Horizontal" InitialPosition="DockedLeft" telerik:DockingPanel.InitialSize="170,150" MaxWidth="600">
<telerik:RadPaneGroup IsDefaultItemSelected="True" SelectedIndex="0">
<telerik:RadPane Header="Entities">
<StackPanel Orientation="Vertical" VerticalAlignment="Stretch">
<BasicControls:EntitySelector x:Name="entitySelector1" VerticalAlignment="Top" />
<BasicControls:HierarchyTreeView VerticalAlignment="Stretch"/>
</StackPanel>
</telerik:RadPane>
<telerik:RadPane Header="Settings">
<StackPanel Orientation="Vertical" Background="#FFF4F6FD" Margin="4">
<BasicControls:ModelSelector x:Name="modelSelector1" VerticalAlignment="Top" />
<BasicControls:UserSettings x:Name="userSettings1" VerticalAlignment="Top" />
</StackPanel>
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
Our HierarchyTreeView includes the following:
<Grid x:Name="LayoutRoot" VerticalAlignment="Stretch"
d:DataContext="{StaticResource ViewModel}">
<telerik:RadBusyIndicator IsBusy="{Binding IsBusy}" BusyContent="{Binding BusyContent}" Visibility="Visible">
<Grid>
<telerik:RadComboBox Name="radComboBox1" Width="Auto" VerticalAlignment="Top"
ItemTemplate="{StaticResource ComboBoxItemTemplate}"
CanAutocompleteSelectItems="True"
IsFilteringEnabled="True"
EmptySelectionBoxTemplate="{StaticResource EmptyTemplate}"
SelectionBoxTemplate="{StaticResource ComboBoxItemTemplate}"
telerik:TextSearch.TextPath="Name"
SelectedItem="{Binding SelectedHierarchy, Mode=TwoWay}"
ItemsSource="{Binding DerivedHierarchies}">
</telerik:RadComboBox>
<telerik:RadTreeView Width="Auto" Height="Auto" VerticalAlignment="Top"
ItemTemplate="{StaticResource ItemTemplateParentChild}"
ItemsSource="{Binding Path=HierarchyMembersAll,Mode=TwoWay,Converter={StaticResource ParentChildConverter}}"
ItemsOptionListType="Default"
IsOptionElementsEnabled="False"
x:Name="TreeView2"
SelectionMode="Multiple" IsLineEnabled="True"
SelectedItem="{Binding SelectedHierarchyMember, Mode=TwoWay}"
IsRootLinesEnabled="True" IsTriStateMode="True"
Margin="0,20, 0, 0"
/>
</Grid>
</telerik:RadBusyIndicator>
</Grid>
I've added The VerticalAlignment="Stretch" to every possible container, but still I can't scroll vertically in TreeView2. Only horizontally.
We must have the controls inside a StackPanel, since their height may vary.
The StackPanel measures itself with infinity. On the other hand, the RadTreeView has to be limited somehow in order to show its vertical ScrollViewer. You could try setting the MaxHeight property of the RadTreeView or placing it in Grid`s RowDefinition with explicit height set. You can also send us a runnable sample that we will investigate faster and provide you with a better suited advice. Thank you for your cooperation in advance.
Kind regards,
Petar Mladenov
the Telerik team
Thanks
Do you actually mean RadTreeView for ASP.Net Ajax ? If so, why don't you post a ticket in the ASP forum?
If it is the Silverlight RadTreeView, could you please elaborate more on your scenario, any sample code will be highly appreciated? This way we would be better able to assist you. Thank you in advance.
Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>