TreeListView

2 posts, 0 answers
  1. Nicolas Guinot
    Nicolas Guinot avatar
    3 posts
    Member since:
    Jun 2009

    Posted 15 Jun 2010 Link to this post

    Hi,
    Is it possible to make a TreeListView with HeaderColonnes wich are vertical?
    thanks
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 15 Jun 2010 Link to this post

    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.
  3. DevCraft banner
Back to Top