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

ItemsOptionListType="CheckList" in new version and some others properties...

2 Answers 44 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Fabiana
Top achievements
Rank 1
Fabiana asked on 29 Jun 2010, 08:27 PM
Hello Support! I installed new version Q2 2010, and I am having problems with my RadTreeListView example. How to change my code to work again?? Thanks!!!



My code:



<UserControl x:Class="SilverlightApplication1.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:SilverlightApplication1"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:nav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
             mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             Height="213" Width="660"
             xmlns:my="clr-namespace:SilverlightApplication1">

    <UserControl.Resources>
    
        
        <telerik:CellTemplate x:Key="firstNameTemplate" >
            <TextBlock Foreground="#284869" Text="{Binding FirstName}" VerticalAlignment="Center"  Margin="2"/>
        </telerik:CellTemplate>

        <telerik:CellTemplate x:Key="lastNameTemplate" >
            <TextBlock Foreground="#284869" Text="{Binding LastName}" VerticalAlignment="Center"  Margin="2"/>
        </telerik:CellTemplate>
       
        <DataTemplate x:Key="itemTemplate">
            <Grid />
        </DataTemplate>

    </UserControl.Resources>
    
    

    <nav:RadTreeListView Background="White" x:Name="RadTreeListViewTest" BorderBrush="#a9a9a9" BorderThickness="1" HorizontalContentAlignment="Center" Width="574" Height="170"
                         IsDragDropEnabled="False" IsDragPreviewEnabled="False" IsDragTooltipEnabled="False"
                         IsEditable="True" SelectionMode="Single"
                         ItemTemplate="{StaticResource itemTemplate}"
                                                    IsSingleExpandPath="False"
                                                    IsExpandOnSingleClickEnabled="True"
                                                    IsLineEnabled="True" IsOptionElementsEnabled="True" ItemsOptionListType="CheckList">

        <nav:RadTreeListView.Columns>

            <nav:RadColumn Header="First Name" PropertyName="FirstName" Width="150" IsEditable="True" CellTemplate="{StaticResource firstNameTemplate}" />

            <nav:RadColumn Header="Last Name" PropertyName="LastName" Width="150" IsEditable="False" CellTemplate="{StaticResource lastNameTemplate}" />

            
        </nav:RadTreeListView.Columns>


    </nav:RadTreeListView>

</UserControl>

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan Dobrev
Telerik team
answered on 02 Jul 2010, 12:41 PM
Hi Fabiana,

You can check the difference in the two online examples: old one, new one. As a general note you should updated your columns to use GridViewDataColumns instead and also define the hierarchy using table definitions as illustrated in the online example.


Regards,
Stefan Dobrev
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
0
Fabiana
Top achievements
Rank 1
answered on 02 Jul 2010, 09:21 PM
Ok, thank you very much!
Tags
TreeListView
Asked by
Fabiana
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Fabiana
Top achievements
Rank 1
Share this question
or