How works AddItemByPath

6 posts, 1 answers
  1. Pascal
    Pascal avatar
    3 posts
    Member since:
    Oct 2008

    Posted 29 Oct 2008 Link to this post

    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



  2. Answer
    Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 31 Oct 2008 Link to this post

    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.
  3. Pascal
    Pascal avatar
    3 posts
    Member since:
    Oct 2008

    Posted 31 Oct 2008 Link to this post

    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.
  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 01 Nov 2008 Link to this post

    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.
  5. Jonathan Miller
    Jonathan Miller avatar
    57 posts
    Member since:
    Jun 2008

    Posted 21 Nov 2008 Link to this post

    Hi Valentin, has the nested capability been added in the current release for AddItemByPath method?
  6. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 21 Nov 2008 Link to this post

    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.
Back to Top