# PreSelected treeview item

**URL:** <https://forum.radzen.com/t/preselected-treeview-item/6354>\
**Category:** Blazor Server\
**Created:** [January 19, 2021, 9:30am UTC](https://forum.radzen.com/t/preselected-treeview-item/6354 "2021-01-19T09:30:34Z")\
**Posts on this page:** 2\
**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:** [January 19, 2021, 9:30am UTC](https://forum.radzen.com/t/preselected-treeview-item/6354/1 "2021-01-19T09:30:34Z")

</div>

Hi. I'm using treeview component and it's working perfectly, but I need a way to have a default item selected and all it's parents to be expaded when user landing on page .  
Here's my code:

```
<RadzenTree Expand=@LoadFiles Change=@OnChange Data=@coreDocuments Style="width: 100%; height: 75vh">
            <RadzenTreeLevel TextProperty="DocumentName" ChildrenProperty="Children" Template=@FileOrFolderTemplate HasChildren=@(e => (e as DocumentNode).IsFile == false ) />
        </RadzenTree>

```

Sorry but I have another question: There is a way to search through RadzeTree items?  
Thank you!

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 19, 2021, 9:47am UTC](https://forum.radzen.com/t/preselected-treeview-item/6354/2 "2021-01-19T09:47:22Z")

</div>

You can search for other threads in the forum that show how to use the Selected property of the TreeLevel to specify what node is selected.

Searching in the tree items is not supported.
