GetItemByPath sub nodes

3 posts, 1 answers
  1. Darren Stoppler
    Darren Stoppler avatar
    36 posts
    Member since:
    Apr 2010

    Posted 27 May 2010 Link to this post

    The GetItemByPath only seems to work to one level.  I'm programatically loading the control (no binding involved) after the tree view loaded event has fired.

    Each item added is set with IsExpanded  = true.  I have the following showing in my tree view:-

    Car
       Car A
    Bike
       Bike A
       Bike B

    GetItemByPath will find "Car" but it returns a null object if I search for "Car A".

    This is driving me crazy.  Is there anyway of getting this to work?

    Thank you.

  2. Answer
    Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 01 Jun 2010 Link to this post

    Hi Darren Stoppler,

    In your case to get the item "Car A" you have to use the full path "Car\\Car A". You can use a different separator instead of "\\" as it is described here.

    Greetings,
    Viktor Tsvetkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Darren Stoppler
    Darren Stoppler avatar
    36 posts
    Member since:
    Apr 2010

    Posted 01 Jun 2010 Link to this post

    Thanks Viktor, that worked fine.
Back to Top