To reproduce:
Use the following code on an empty RadTreeView:
this.TreeView.AddNodeByPath("General\\Billing\\February\\Report.txt");
You will see that the Report.txt node will be added to the Root node
Workaround:
Use the following method:
private RadTreeNodeCollection AddNode(string path)
{
if (path == String.Empty)
return this.TreeView.Nodes;
string node = Path.GetFileName(path);
RadTreeNodeCollection parent = AddNode(Path.GetDirectoryName(path));
if (parent.Contains(node))
return parent[node].Nodes;
else
return parent.Add(node).Nodes;
}