Hi,
I'm working with a RadTreeview binded to an ObservableCollection.
All is fine, until I add a new item in my collection, a new row is created, but the left arrow (to expand) doesn't appear.
I have to expand with a double click to let it appear. After that all is fine.
Can someone help me ?
Thanks,
Benoit.
01.
<
telerik:RadTreeView
ItemsSource
=
"{Binding Directories}"
SelectedItem
=
"{Binding SelectedItem, Mode=TwoWay}"
Grid.Row
=
"1"
Background
=
"White"
>
02.
<
telerik:RadTreeView.ItemContainerStyle
>
03.
<
Style
TargetType
=
"telerik:RadTreeViewItem"
>
04.
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Stretch"
/>
05.
</
Style
>
06.
</
telerik:RadTreeView.ItemContainerStyle
>
07.
<
telerik:RadTreeView.ItemTemplate
>
08.
<
HierarchicalDataTemplate
ItemsSource
=
"{Binding FilesList}"
>
09.
<
Grid
HorizontalAlignment
=
"Stretch"
>
10.
<
Grid.ColumnDefinitions
>
11.
<
ColumnDefinition
Width
=
"*"
></
ColumnDefinition
>
12.
<
ColumnDefinition
Width
=
"Auto"
></
ColumnDefinition
>
13.
</
Grid.ColumnDefinitions
>
14.
<
TextBlock
Grid.Column
=
"0"
Text
=
"{Binding Name}"
VerticalAlignment
=
"Center"
/>
15.
<
Button
Grid.Column
=
"1"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Center"
Content
=
"Export"
>
16.
</
Grid
>
17.
</
HierarchicalDataTemplate
>
18.
</
telerik:RadTreeView.ItemTemplate
>
19.
</
telerik:RadTreeView
>