I have a collection which contains two properties
1. ABC
2. XYZ
I want to make XYZ as the child of ABC For example:
.ABC1
.XYZ1
.XYZ2
.ABC2
.XYZ3
.XYZ4
I want to bind this in .XAML.CS page
Currently what I have done in XAML
In XAML.CS page
Collection is CommodityCollection
1. ABC
2. XYZ
I want to make XYZ as the child of ABC For example:
.ABC1
.XYZ1
.XYZ2
.ABC2
.XYZ3
.XYZ4
I want to bind this in .XAML.CS page
Currently what I have done in XAML
<Telerik:RadTreeView x:Name="RadTreeView" DockPanel.Dock="Bottom"/>
In XAML.CS page
Collection is CommodityCollection
RadTreeViewItem
aa;
for (int i = 0; i < CommodityCollection.Count; i++) {
aa = new RadTreeViewItem();
aa.Header = CommodityCollection[i].ABC;
this.RadTreeView.Items.Add(aa);
Now my problem is How to add child node in the RadTreeView?