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

How to traverse the treeview

1 Answer 123 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ewgenij
Top achievements
Rank 1
Veteran
Ewgenij asked on 07 Aug 2020, 12:17 PM

How can I traverse the treeview? For example, I start at a node somewhere in the hierarchy and want to get data from its parent and then from the parent of the parent? 

 

I could use the TreeItemLookup, but it fires when checkboxes are enabled for each node only. And then I would get the parent of the current node only, not the parent of the parent.

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 11 Aug 2020, 09:13 AM

Hi Ewgenij,

We will need more information about your current Kendo UI subscription. I have therefore generated a sales lead, and you can expect our licensing specialists to contact you, or if you have any questions about obtaining a license for Kendo UI for Angular, feel free to open a separate thread.

If your company has already purchased a license from another account, please contact the license holder and provide them with this link so they can add you as a licensed developer. If you need to purchase or renew your subscription, you can reach out to our product specialists on telerik-sales@progress.com. They will gladly assist you with finding both the answers to your questions and a subscription that best fits your needs.

Once your account is associated with an active subscription, you can benefit from the full benefits of the respective support plan.

About the question, what could be done is to use the node template index field based on which it would be possible to get the desired parent element or elements of the current node by calling the itemLookup() function. Indeed, the provided index would have to be split accordingly using some custom logic in order to find the desired parent node. But there isn't another built - in feature that would allow to achieve the requirement at the moment.

Please let me know in case any further information is required for this case.

Regards,
Svetlin
Progress Telerik

Tags
TreeView
Asked by
Ewgenij
Top achievements
Rank 1
Veteran
Answers by
Svet
Telerik team
Share this question
or