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

[Solved] How to wrap TextBlock in RadTreeView

1 Answer 109 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.
Andriy Mudriy
Top achievements
Rank 1
Andriy Mudriy asked on 18 Dec 2009, 05:04 PM
Hi,
I have such code
<ScrollViewer x:Name="ScrollViewerExceptions" 
                          BorderBrush="Gray" 
                          VerticalScrollBarVisibility="Auto" 
                          HorizontalScrollBarVisibility="Auto" 
                                      HorizontalAlignment="Stretch"   
                                      VerticalAlignment="Stretch"   
                                      Width="Auto"   
                                      Height="Auto" 
                          MaxHeight="300" 
                          > 
                <telerikNavigation:RadTreeView x:Name="List" 
                    Margin="0" MinHeight="200"   
                    IsLineEnabled="True" SelectionMode="Single" IsEditable="False" 
                    IsDragDropEnabled="False"   
                  > 
 
                        <telerik:HierarchicalDataTemplate > 
                            <telerik:HierarchicalDataTemplate.ItemTemplate> 
                            <DataTemplate> 
                                <TextBlock TextWrapping="Wrap" Height="Auto" VerticalAlignment="Stretch" Width="50"/>  
                            </DataTemplate> 
                        </telerik:HierarchicalDataTemplate.ItemTemplate> 
                        </telerik:HierarchicalDataTemplate> 
                </telerikNavigation:RadTreeView> 
            </ScrollViewer> 

but it doesn't work correctly. Nodes don't wrap. Do you have any thoughts?

 

 

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 21 Dec 2009, 07:28 AM
Hello Andriy Mudriy,

Please check this help article:
http://www.telerik.com/help/silverlight/radtreeview-templating-item-template.html

Sincerely yours,
Valentin.Stoychev
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.
Tags
TreeView
Asked by
Andriy Mudriy
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or