Hi,
I am having a problem with the new Release in the RadTreeView. I have a HierarchicalDataTemplate on a Tree witch works fine with the previouse release without throwing Binding Excpetions. Now I get Expection for the Children Probetry as well as for the ContainerBindings.
Here the example:
...
<
telerik:ContainerBindingCollection
x:Key
=
"TreeViewContainerBindings"
>
<
telerik:ContainerBinding
PropertyName
=
"IsSelected"
Binding
=
"{Binding IsSelected}"
/>
<
telerik:ContainerBinding
PropertyName
=
"IsExpanded"
Binding
=
"{Binding IsExpanded, Mode=TwoWay}"
/>
</
telerik:ContainerBindingCollection
>
...
<
telerik:RadTreeView
Grid.Row
=
"0"
Grid.Column
=
"0"
telerik:TextSearch.TextPath
=
"DisplayName"
x:Name
=
"treeViewGeschaeftspartner"
MouseRightButtonUp
=
"TreeViewGeschaeftspartner_MouseRightButtonUp"
ItemsSource
=
"{Binding GeschaeftspartnerDisplay}"
SelectedItem
=
"{Binding CurrentSelectedGeschaeftspartnerListDisplay, Mode=TwoWay}"
IsVirtualizing
=
"True"
BringIntoViewMode
=
"HeaderAndItems"
AutoScrollToSelectedItem
=
"True"
IsTextSearchEnabled
=
"True"
IsDragPreviewEnabled
=
"False"
IsDragTooltipEnabled
=
"True"
IsDragDropEnabled
=
"True"
>
<
telerik:RadTreeView.ItemTemplate
>
<
telerik:HierarchicalDataTemplate
ItemsSource
=
"{Binding Children}"
telerik:ContainerBinding.ContainerBindings
=
"{StaticResource TreeViewContainerBindings}"
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"{Binding Converter={StaticResource VisibilityConverter}, ConverterParameter='Aktiv'}"
>
<
Image
Height
=
"16"
Source
=
"{Binding ImageSource}"
Margin
=
"0,0,3,0"
></
Image
>
<
Grid
>
<
TextBlock
Foreground
=
"{Binding Self, Converter={StaticResource GPForegroundConverter}}"
Text
=
"{Binding FirmenName}"
Visibility
=
"{Binding Converter={StaticResource VisibilityConverter}, ConverterParameter='Firma'}"
/>
<
TextBlock
Foreground
=
"{Binding Self, Converter={StaticResource GPForegroundConverter}}"
Text
=
"{Binding AbteilungName}"
Visibility
=
"{Binding Converter={StaticResource VisibilityConverter}, ConverterParameter='Abteilung'}"
/>
<
TextBlock
Foreground
=
"{Binding Self, Converter={StaticResource GPForegroundConverter}}"
Text
=
"{Binding PersonName}"
Visibility
=
"{Binding Converter={StaticResource VisibilityConverter}, ConverterParameter='Person'}"
/>
</
Grid
>
</
StackPanel
>
</
telerik:HierarchicalDataTemplate
>
</
telerik:RadTreeView.ItemTemplate
>
</
telerik:RadTreeView
>
How can we avoid these Exceptions? They cause the TreeView to perform badly.
Best Regards
Matthias