Hello,
I've a question about the AddNodeByPath method.
I get an array with the following content (datatype is string)
Switzerland
Switzerland/Bern
Switzerland/Zurich
Switzerland/Zurich/Bulach
Switzerland/Zurich/Bulach/Opfikon
Switzerland/Zurich/Uster
...
And I'd have the following hirarchie:
-Switzerland
|-Bern
|-Zurich
|-Bulach
|-Opfikon
|-Uster
But when I use this code I get some other structure:
foreach (string city in cities)
{
radTreeView1.addNodeByPath(city, "/");
}
Can you help me to give an easy solution for that? I don't want to solve it by recursion and other more complex algorithms.
Thank you in advance
Danny Meier
I've a question about the AddNodeByPath method.
I get an array with the following content (datatype is string)
Switzerland
Switzerland/Bern
Switzerland/Zurich
Switzerland/Zurich/Bulach
Switzerland/Zurich/Bulach/Opfikon
Switzerland/Zurich/Uster
...
And I'd have the following hirarchie:
-Switzerland
|-Bern
|-Zurich
|-Bulach
|-Opfikon
|-Uster
But when I use this code I get some other structure:
foreach (string city in cities)
{
radTreeView1.addNodeByPath(city, "/");
}
Can you help me to give an easy solution for that? I don't want to solve it by recursion and other more complex algorithms.
Thank you in advance
Danny Meier