# Trre control as filter for templateform

**URL:** <https://forum.radzen.com/t/trre-control-as-filter-for-templateform/3482>\
**Category:** Blazor Server\
**Created:** [May 4, 2020, 4:08pm UTC](https://forum.radzen.com/t/trre-control-as-filter-for-templateform/3482 "2020-05-04T16:08:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnmu](https://forum.radzen.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@johnmu](https://forum.radzen.com/u/johnmu)\
**Post date:** [May 4, 2020, 4:08pm UTC](https://forum.radzen.com/t/trre-control-as-filter-for-templateform/3482/1 "2020-05-04T16:08:35Z")

</div>

Folks,

I would like to use the tree control to display infomration from n2N tables and then when the user selects a node for the templateform to populate.

I have go the NW example running :

1. how do I populate the template from from the child node value (not the displayed text)?

2. How to get child levels to load based on the ID of the parent node?

thanks

John

---

<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:** [May 4, 2020, 5:13pm UTC](https://forum.radzen.com/t/trre-control-as-filter-for-templateform/3482/2 "2020-05-04T17:13:01Z")

</div>

Child nodes in all Tree component examples in this demo are populated according to parent node:

> **[Blazor Tree Component | Free UI Components by Radzen](https://blazor.radzen.com/tree)**
>
> Demonstration and configuration of the Blazor RadzenTree component.

Furthermore Edit Form (which is a TemplateForm) from CRUD pages created by Radzen is populated exactly by a parameter used to retrieve the object from data collection.

---

<div class="post-metadata">

**Author:** ![johnmu](https://forum.radzen.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@johnmu](https://forum.radzen.com/u/johnmu)\
**Post date:** [May 5, 2020, 8:17am UTC](https://forum.radzen.com/t/trre-control-as-filter-for-templateform/3482/3 "2020-05-05T08:17:11Z")

</div>

Vladimir,  
thanks but i still can't see how to populate a tree using two queries, one for the parent and one for the children.

And then how do i populate the CRUD form when i click on the child node? All i can see is the node text value but i need the value (ID)

thanks John
