I have created a RADTREEVIEW in the code behind and populated with 3 levels of items :
RadTreeViewItem parent = new RadTreeViewItem();
tv.IsOptionElementsEnabled = true;
tv.IsExpandOnSingleClickEnabled = true;
parent.Header = "Parent";
tv.Items.Add(parent);
for (int i = 0; i < 6; i++)
{
RadTreeViewItem child = new RadTreeViewItem();
child.Height = 20;
child.Header = "Child " + i.ToString();
parent.Items.Add(child);
for (int j = 0; j < 6; j++)
{
RadTreeViewItem grandchild = new RadTreeViewItem();
grandchild.Height = 20;
grandchild.Header = "grandChild " + j.ToString();
child.Items.Add(grandchild);
}
}
When I run the project and I click on Parent it opens and shows 6 children all with the expandable icon next to them. When I child on a 'Child' however the icon changes to an 'open' icon but none of the children show - what am I missing?
RadTreeViewItem parent = new RadTreeViewItem();
tv.IsOptionElementsEnabled = true;
tv.IsExpandOnSingleClickEnabled = true;
parent.Header = "Parent";
tv.Items.Add(parent);
for (int i = 0; i < 6; i++)
{
RadTreeViewItem child = new RadTreeViewItem();
child.Height = 20;
child.Header = "Child " + i.ToString();
parent.Items.Add(child);
for (int j = 0; j < 6; j++)
{
RadTreeViewItem grandchild = new RadTreeViewItem();
grandchild.Height = 20;
grandchild.Header = "grandChild " + j.ToString();
child.Items.Add(grandchild);
}
}
When I run the project and I click on Parent it opens and shows 6 children all with the expandable icon next to them. When I child on a 'Child' however the icon changes to an 'open' icon but none of the children show - what am I missing?