# AutoComplete selected value

**URL:** <https://forum.radzen.com/t/autocomplete-selected-value/5567>\
**Category:** Radzen.Blazor Components\
**Created:** [November 10, 2020, 2:38pm UTC](https://forum.radzen.com/t/autocomplete-selected-value/5567 "2020-11-10T14:38:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fnils](https://forum.radzen.com/user_avatar/forum.radzen.com/fnils/32/1799_2.png) [@fnils](https://forum.radzen.com/u/fnils)\
**Post date:** [November 10, 2020, 2:38pm UTC](https://forum.radzen.com/t/autocomplete-selected-value/5567/1 "2020-11-10T14:38:00Z")

</div>

I don't know if I misunderstand the AutoComplete component.  
When I try it on the website it looks like i get the value I select in the dropdown.  
But when I do the same in my site I get the text I write in it back in the Change event.  
Am I using it wrong or do I misunderstand how it is used?

\<RadzenAutoComplete Data="@searchItems"  
@bind-Value="ClearSearchText"  
TextProperty="Title"  
LoadData="@LoadData"  
Style="width:100px;"  
class="form-control-md"  
Placeholder="Search"  
MouseEnter="(args =\> ShowTooltip(args))"  
Change="@(args =\> Change(args))" /\>

---

<div class="post-metadata">

**Author:** ![fnils](https://forum.radzen.com/user_avatar/forum.radzen.com/fnils/32/1799_2.png) [@fnils](https://forum.radzen.com/u/fnils)\
**Post date:** [November 11, 2020, 10:59am UTC](https://forum.radzen.com/t/autocomplete-selected-value/5567/2 "2020-11-11T10:59:49Z")

</div>

> [@fnils](#):
>
> Change="@(args =\> Change(args))"

So this might be the reason.  
If I have Change="@(args =\> Change(args))" it works diffrently then if I write Change="@Change".  
The first seems to only sen back what I wrote and the second seems to send back the text I selected in the dropdown or the text I wrote if I click enter after typing.

---

<div class="post-metadata">

**Author:** ![Christopher\_Lenard](https://forum.radzen.com/user_avatar/forum.radzen.com/christopher_lenard/32/11858_2.png) [@Christopher\_Lenard](https://forum.radzen.com/u/Christopher_Lenard)\
**Post date:** [October 4, 2022, 8:25pm UTC](https://forum.radzen.com/t/autocomplete-selected-value/5567/3 "2022-10-04T20:25:44Z")

</div>

For what it's worth -- using "ValueChanged" worked for me.

---

<div class="post-metadata">

**Author:** ![Nemesis\_Yazilim](https://forum.radzen.com/user_avatar/forum.radzen.com/nemesis_yazilim/32/6770_2.png) [@Nemesis\_Yazilim](https://forum.radzen.com/u/Nemesis_Yazilim)\
**Post date:** [June 4, 2024, 9:46am UTC](https://forum.radzen.com/t/autocomplete-selected-value/5567/4 "2024-06-04T09:46:15Z")

</div>

The method I'm going to send you is quite handy and effective; you can receive the 'value' in the format provided below.

```auto

 <RadzenAutoComplete TextProperty="Title"
                     Style="width: 100%" Data="Articles" LoadData="args=>Search(args.Filter)">
     <Template>

         <RadzenButton Text="@((context as ArticleDto).Title)" Click="()=>GoToArticle((context as ArticleDto))" />
     </Template>
 </RadzenAutoComplete>

```
