# Nested Tree Angular

**URL:** <https://forum.radzen.com/t/nested-tree-angular/1721>\
**Category:** Angular\
**Created:** [October 7, 2019, 8:04am UTC](https://forum.radzen.com/t/nested-tree-angular/1721 "2019-10-07T08:04:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rancov\_Miroslav](https://forum.radzen.com/user_avatar/forum.radzen.com/rancov_miroslav/32/1752_2.png) [@Rancov\_Miroslav](https://forum.radzen.com/u/Rancov_Miroslav)\
**Post date:** [October 7, 2019, 8:04am UTC](https://forum.radzen.com/t/nested-tree-angular/1721/1 "2019-10-07T08:04:28Z")

</div>

Hi, I just started with radzen and I wanna make a nested tree. How do I do this?  
This is my Array of obj  
Arr= [  
{Id:1,  
ParentId:0,  
DocumentName:First Document  
},  
{Id:4,  
ParentId:1,  
DocumentName:Child 1  
}  
];  
Thank you!

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [October 7, 2019, 8:10am UTC](https://forum.radzen.com/t/nested-tree-angular/1721/2 "2019-10-07T08:10:35Z")

</div>

There is an example in this article: [https://www.radzen.com/documentation/tree/](https://www.radzen.com/documentation/tree/)

---

<div class="post-metadata">

**Author:** ![Rancov\_Miroslav](https://forum.radzen.com/user_avatar/forum.radzen.com/rancov_miroslav/32/1752_2.png) [@Rancov\_Miroslav](https://forum.radzen.com/u/Rancov_Miroslav)\
**Post date:** [October 7, 2019, 10:09am UTC](https://forum.radzen.com/t/nested-tree-angular/1721/3 "2019-10-07T10:09:45Z")

</div>

Tank you for your response, I tried, but it's not working (wanna match Id === ParentId), olso tied load loadash but when I recompile the application it removes the loadash. Thanks!

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [October 7, 2019, 10:26am UTC](https://forum.radzen.com/t/nested-tree-angular/1721/4 "2019-10-07T10:26:05Z")

</div>

The example shows how to:

- Access current node data using `${event.data}`
- Access current node level using `${event.level}`
- Set node children using `${event.children}`

For this particular example we've used non homogeneous data (each level have different properties) and you can find example with homogeneous data (self-referencing) in this thread:

> [@Question regarding tree to show recursive data structure](https://forum.radzen.com/t/question-regarding-tree-to-show-recursive-data-structure/1003/4):
>
> You want top -\> down structure, right? Northwind Employees is a self-referencing table as well, here is how to display it: First get the employees not reporting to anyone and use it for first level: Then get the employees reporting to expanded employee: Here is how it looks runtime:

Again, these are just examples that can be adapted to your scenario and data.

---

<div class="post-metadata">

**Author:** ![Rancov\_Miroslav](https://forum.radzen.com/user_avatar/forum.radzen.com/rancov_miroslav/32/1752_2.png) [@Rancov\_Miroslav](https://forum.radzen.com/u/Rancov_Miroslav)\
**Post date:** [October 8, 2019, 7:04am UTC](https://forum.radzen.com/t/nested-tree-angular/1721/5 "2019-10-08T07:04:37Z")

</div>

Thank you! I will try 🙂
