I'm trying to figure this out, and while I can hack it, I don't want to sacrifice the theme styling of RadTreeViewItem. So, is there any easy way to make a TreeViewItem multi-line? I've tried setting width, but the content just stretches out and creates a scrollbar.
Thanks!!
Serrin
3 Answers, 1 is accepted
0
Bobi
Telerik team
answered on 20 Feb 2009, 08:20 AM
Hi Serrin,
If you want to make a TreeViewItem multi-line you can use one of these techniques:
1.The easier way to have multi-lineTreeView items is to change the header property. You can do this either with HeaderTemplate or simply:
<telerik:RadTreeView >
<telerik:RadTreeViewItem.Header>
<StackPanel>
<TextBlock TextWrapping="Wrap" Text="Some text 1" />
<TextBlock TextWrapping="Wrap" Text="Some text 2" />
//some other content
</StackPanel>
</telerik:RadTreeViewItem.Header>
</telerik:RadTreeViewItem>
<telerik:RadTreeView>
At the time when the reply was posted the links were correct, but after our Q1 2009 release there were some changes to the demos. I apologize for any inconvenience this may have caused you.