This is a migrated thread and some comments may be shown as answers.

How works AddItemByPath

5 Answers 77 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Pascal
Top achievements
Rank 1
Pascal asked on 29 Oct 2008, 04:30 PM
I tried to use the AddItemByPath method with and without the separator parameter.

The only result I had was a list of stuff with no hierarchy.

If I give it this:
   "root\\toto1"
   "toot\\toto2"
I just get something like:
   "root\toto1"
   "toot\toto2"

And if I give this:
   "root\\\\toto1"
   "toot\\\\toto2"
I get this:
   "\toto1"
   "\toto2"

When I would expect something like:
"root"
   "toto1"
   "toto2"

How am I suppose to use AddItemByPath?

Thanks,
Pascal



5 Answers, 1 is accepted

Sort by
0
Accepted
Valentin.Stoychev
Telerik team
answered on 31 Oct 2008, 07:20 AM
Hello Pascal,

Thank you for the feedback,

Yes - this is the way it is working now. It is NOT buliding the hierarchy. Currently only the last item from the path is added. Do you think it will be usefull if we provide you with a similar method which builds the entire missing hierarchy from the path that you are trying add?


Regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Pascal
Top achievements
Rank 1
answered on 31 Oct 2008, 04:28 PM
Thanks for the reply Valentin.

Yes I think creating the missing hierarchy would be very useful to quickly and simply create a tree. At least more useful than the current implementation of AddItemByPath in my opinion, which is simply creating a list. It would also give another option to the dev to create a tree.
0
Valentin.Stoychev
Telerik team
answered on 01 Nov 2008, 09:22 AM
Hello Pascal,

Thanks for the feedback - we will implement this within the Service Pack release, after the official one that is next week.

Regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jonathan Miller
Top achievements
Rank 1
answered on 21 Nov 2008, 01:30 PM
Hi Valentin, has the nested capability been added in the current release for AddItemByPath method?
0
Valentin.Stoychev
Telerik team
answered on 21 Nov 2008, 04:26 PM
Hi Jonathan Miller,

No - this was not added with the GridRelease. It is scheduled for the SP that is coming in December.

Best wishes,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Pascal
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Pascal
Top achievements
Rank 1
Jonathan Miller
Top achievements
Rank 1
Share this question
or