The following code will reproduce the exception:
It seems that I would need to call "Remove" on each node before adding them back to the tree. But, since I'm adding them to the same TreeView, should an exception still be thrown?
RadTreeView tree =
new
RadTreeView();
tree.Name =
"tree"
;
RadTreeNode[] nodes =
new
RadTreeNode[5];
for
(
int
i = 0; i < nodes.Length; ++i)
nodes[i] =
new
RadTreeNode(i.ToString());
tree.Nodes.AddRange(nodes);
tree.Nodes.Clear();
tree.Nodes.AddRange(nodes);
It seems that I would need to call "Remove" on each node before adding them back to the tree. But, since I'm adding them to the same TreeView, should an exception still be thrown?