This question is locked. New answers and comments are not allowed.
Hey!
I have a problem regarding the treeview:
When i add an item to the treeview like this
i cannot access the added item right after:
But i need the added item right after not only for expanding purposes.
how can i get the item immediately after adding?
thanks
andi
I have a problem regarding the treeview:
When i add an item to the treeview like this
this.SelectedItem.Children.Add(itemToAdd);
this.SelectedItem = itemToAdd;
i cannot access the added item right after:
//Open element after child added
var item = this.view.TreeView.SelectedContainer as RadTreeViewItem
if (item != null)
{ item.IsExpanded = true;
}But i need the added item right after not only for expanding purposes.
how can i get the item immediately after adding?
thanks
andi