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

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

1 Answer 1047 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Barani
Top achievements
Rank 1
Barani asked on 19 Dec 2012, 10:04 PM
Hi,

I have formed tree as below,
A
-B
--C
---D

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?

Thanks,
Barani

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 20 Dec 2012, 10:14 PM
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.

Regards,
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!
Ramesh
Top achievements
Rank 1
commented on 22 Nov 2022, 04:24 AM

How to achieve same thing in Kendo react framework.

Is there any parent method is available for react kendo?.
Filip
Telerik team
commented on 23 Nov 2022, 05:52 PM | edited

Hello, Ramesh,

Currently, the TreeView does not have a parent method like KendoUI for Jquery one has. I can recommend submitting a feature request in our feedback portal where new ideas are constantly being evaluated and the best ones are later included in future releases:

https://feedback.telerik.com/kendo-react-ui

I hope this helps.
Tags
TreeView
Asked by
Barani
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or