How to Set RadTreeListView ROW Baground Color

1 posts, 0 answers
  1. Ravi
    Ravi avatar
    2 posts
    Member since:
    May 2011

    Posted 05 Oct 2011 Link to this post

    I have Telerik RadTreeListView

    <

    telerik:RadTreeListView x:Name="treeListView" AutoGenerateColumns="False">

     

    <telerik:RadTreeListView.ChildTableDefinitions>

     

    <telerik:TreeListViewTableDefinition ItemsSource="{Binding SubFolders}" />

     

    </telerik:RadTreeListView.ChildTableDefinitions>

     

    <telerik:RadTreeListView.Columns>
    <telerik:GridViewDataColumn Header="Folder/File Name" Width="408" IsReadOnly="True" IsSortable="True" IsFilterable="False" HeaderTextAlignment = "Center" TextAlignment="Left">

     

    <telerik:GridViewDataColumn.CellTemplate>

     

    <DataTemplate>

     

    <StackPanel Orientation="Horizontal">

     

    <Image Source="{Binding FileorFolderPath}"/>

     

    <TextBlock Text="{Binding FolderName}" Margin="5" MouseUp="editcell_MouseLeftButtonUp"/>

     

    </StackPanel>

     

    </DataTemplate>

     

    </telerik:GridViewDataColumn.CellTemplate>

     

    </telerik:GridViewDataColumn><telerik:GridViewDataColumn DataMemberBinding="{Binding Date, StringFormat=\{0:dd-MMM-yyyy\}}" Header="Date" IsReadOnly="True" Width="140" HeaderTextAlignment = "Center" IsSortable="True" IsFilterable="False" TextAlignment="Center" />

     

    <

    telerik:GridViewDataColumn DataMemberBinding="{Binding Count}" Header="Version" IsReadOnly="True" Width="70" HeaderTextAlignment = "Center" IsSortable="False" IsFilterable="False" TextAlignment="Center" />
    </telerik:RadTreeListView.Columns>
    </telerik:RadTreeListView>
    For alternate Rows i like to Apply different Baground Color How Can i Do ?
    Help me out as soon as possible....

     

Back to Top