This is a migrated thread and some comments may be shown as answers.
self-referencing-hierarchy-that-is-n-levels-deep in RadTreeListView
2 Answers 12 Views
This is a migrated thread and some comments may be shown as answers.
Siqi
Top achievements
Rank 1
Siqi asked on 24 Jun 2015, 09:49 AM

Hello, 

  I'm doing a project which need a n level deep in RadTreeListView. The first level I get a list of sector (ex: Asia, Europe, America).  For the second sector: if it has the information (ex: Europe -> Est Europe, West Europe), I will show it ("Est europe", "West Europe" are the children of "Europe"). Then I may get still the third, fourth, fifth sector.

  I have seen a old topic which talk about this, (see the link: http://www.telerik.com/forums/self-referencing-hierarchy-that-is-n-levels-deep#HN4SgZblU0eBamdGcvLWiQ) and I succeed to run this example, but there are always the children sector show in the first sector ("Sally Smith", "Fred Smith" should show only in the second level subsector and his father is "John Smith", "Emma Smith" should only show in the third level subsector and his father is "Sally Smith", see in the attach files to get more details). So I want to know how to fix this issue?

 

Siqi

 

 

2 Answers, 1 is accepted

Sort by
0
Siqi
Top achievements
Rank 1
answered on 25 Jun 2015, 08:47 AM

I finally find a solution for my question, here is the link: http://www.telerik.com/forums/binding-to-self-reference-hierarchy-and-drag-drop 

I can't attche a .zip file here, but see selfreferencingdata.zip in the link.

Don't hesitate to add more level (in data) as:

       new DataItem() {Text = "Item 1.1.3", Id = 13, ParentId = 4},
       new DataItem() {Text = "Item 1.1.3.1", Id = 14, ParentId = 13},
       new DataItem() {Text = "Item 1.1.3.1.1", Id = 15, ParentId = 14}

Hope this could help someone else.

 Siqi

0
Dimitrina
Telerik team
answered on 25 Jun 2015, 09:06 AM
Hello Siqi,

Thank you so much for sharing the solution with the community. 

Regards,
Dimitrina
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
Asked by
Siqi
Top achievements
Rank 1
Answers by
Siqi
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or