This question is locked. New answers and comments are not allowed.
Im having problems with Hierarchical data Showing their children.
I had this working in the prior CTP and am now trying to make it work with the beta
i dumbed up the code to see if i could figure out what was going on but still no child items are displayed.
What am I doing wrong.
I had this working in the prior CTP and am now trying to make it work with the beta
i dumbed up the code to see if i could figure out what was going on but still no child items are displayed.
What am I doing wrong.
Public
Class
Test
Private
_Items
As
New
ObservableCollection(Of test)
Public
Property
Items()
As
ObservableCollection(Of test)
Get
Return
_Items
End
Get
Set
(
ByVal
value
As
ObservableCollection(Of test))
_Items = value
End
Set
End
Property
Private
_Name
As
String
=
"AA"
Public
Property
Name()
As
String
Get
Return
_Name
End
Get
Set
(
ByVal
value
As
String
)
_Name = value
End
Set
End
Property
End
Class
Private
Sub
tvKits_Loaded(
ByVal
sender
As
Object
,
ByVal
e
As
System.Windows.RoutedEventArgs)
Handles
tvKits.Loaded
Dim
zz
As
New
ObservableCollection(Of Test)
zz.Add(
New
Test)
zz(0).Items.Add(
New
Test)
zz(0).Items(0).Items.Add(
New
Test)
tvKits.ItemsSource = zz
End
Sub
<
telerikGridView:RadTreeListView
IsReadOnly
=
"True"
x:Name
=
"tvKits"
Grid.Row
=
"1"
Grid.Column
=
"1"
AutoGenerateColumns
=
"False"
>
<
telerikGridView:RadTreeListView.ChildTableDefinitions
>
<
telerikGridView:GridViewTableDefinition
>
<
telerikGridView:GridViewTableDefinition.Relation
>
<
telerikData:PropertyRelation
ParentPropertyName
=
"Items"
/>
</
telerikGridView:GridViewTableDefinition.Relation
>
</
telerikGridView:GridViewTableDefinition
>
</
telerikGridView:RadTreeListView.ChildTableDefinitions
>
<
telerikGridView:RadTreeListView.Columns
>
<
telerikGridView:GridViewDataColumn
Header
=
"Assembly"
DataMemberBinding
=
"{Binding Name}"
/>
</
telerikGridView:RadTreeListView.Columns
>
</
telerikGridView:RadTreeListView
>