How to get parent list (text) of selected child node

2 posts, 0 answers
  1. Barani
    Barani avatar
    9 posts
    Member since:
    Dec 2012

    Posted 19 Dec 2012 Link to this post


    I have formed tree as below,

    Now when user clicks on D, I need to list complete parent path in my grid, hence I am trying to figure out a way to get parent(s) text (in an array) that I can use to populate my grid.

    Can you please let me know how to do that?

  2. Alexander Valchev
    Alexander Valchev avatar
    2887 posts

    Posted 20 Dec 2012 Link to this post

    Hi Barani,

    TreeView widget has a parent method that allows you to retrieve the parent node of an item. You can implement the get path function using the parent and dataItem methods.

    Please see this forum thread for alternative approaches.

    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top