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

hierarchy data structure

2 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jesil
Top achievements
Rank 2
Jesil asked on 26 Nov 2019, 09:34 AM

hi

I have an Hierarchy Data Sructure in my API, I'm using that API with Kendo react react treelist , now the tree list is working fine but i can't get the data from last index position, now I'm able to only get the index position, how can i get the data from my API.

 

Example below:

- Item 1

         - Sub Item

                        + Inner Sub Item

+ Item 2

+ Item 3

+ item 4

my question is how can i get the Inner Sub Item  from the Treelist :)

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 27 Nov 2019, 09:36 AM

Hello,

Each item can be accessed on the onRowClick or on the onExpandChange events from the event:

https://www.telerik.com/kendo-react-ui/components/treelist/api/TreeListProps/#toc-onrowclick

https://www.telerik.com/kendo-react-ui/components/treelist/api/TreeListProps/#toc-onexpandchange

https://stackblitz.com/edit/react-tgcaqh?file=app/main.jsx

if the item has to be accessed at different times, please let me know more details about the scenario.

Regards,
Stefan
Progress Telerik

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 Feedback Portal and vote to affect the priority of the items
0
Jesil
Top achievements
Rank 2
answered on 03 Dec 2019, 04:19 AM
Thank you
Tags
General Discussions
Asked by
Jesil
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Jesil
Top achievements
Rank 2
Share this question
or