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>
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>