Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Clearing a selected DropDown item without bind-Value

$
0
0

How can we clear/reset the selected item on a Radzen DropDown?

I did not use bind-Value to get the selected item.

Instead, I used Change() to get the selected object.

However, if I select one item on the DropDown and change the content of tempLocations, the selected item itself will not be cleared.

View:

<RadzenDropDown Name="Location" TValue="string" Data=@tempLocations Change=@(args => LocationChange(args))><Template Context = "location">            @($"{location.id}:{location.name}")   </Template></RadzenDropDown>

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>