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

TreeListView

1 Answer 99 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Nicolas Guinot
Top achievements
Rank 1
Nicolas Guinot asked on 15 Jun 2010, 02:20 PM
Hi,
Is it possible to make a TreeListView with HeaderColonnes wich are vertical?
thanks

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 15 Jun 2010, 03:00 PM
Hi Nicolas Guinot,

You may use the Header property of the column you define. Within the header you may place any UI element instead of the string.
For example you may place a rotated TextBlock in the header to achieve your goal.

Something like :

<telerik:RadTreeListView ItemsSource="1234" AutoGenerateColumns="False" >
           <telerik:RadTreeListView.Columns>
               <telerik:GridViewColumn Width="40">
                   <telerik:GridViewColumn.Header>
                       <Border Width="100" Height="100">
                           <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="Rotated">
                           <TextBlock.RenderTransform>
                               <RotateTransform Angle="90" />
                           </TextBlock.RenderTransform>
                           </TextBlock>
                       </Border>
                   </telerik:GridViewColumn.Header>
               </telerik:GridViewColumn>
           </telerik:RadTreeListView.Columns>
       </telerik:RadTreeListView>

Sincerely yours,
Pavel Pavlov
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
TreeListView
Asked by
Nicolas Guinot
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or