Invoke RadzenDropdown Reset method

Hi,
Components are fantastic.
How do I call the Reset method on the RadzenDropdown components?. I have a Blazor Client page with a dropdown in a for loop. My program allows the list to be reordered so some selections no longer match the filters that are remaining on the dropdown instances. As a result the selected value does not display as it does not match the filter.
Thanks

Hi @GBaillie,

You can get component reference using @ref attribute:
https://docs.microsoft.com/en-us/aspnet/core/blazor/components/?view=aspnetcore-3.1#capture-references-to-components

@enchev thank you for the quick response. I'll give that a go.

Hi @enchev I was able to access the reset method using the link you provided. As my component was in a @for loop I used the construct;

   <RadzenDropDown  @ref="component" @bind-Value="@Test[iCopy].Id" AllowClear="true" TValue="int"
                        AllowFiltering="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
                        Data=@TestData
                        TextProperty="Name" ValueProperty="Id" />

and in the code section:

    RadzenDropDown<int> component { set => components.Add(value); }

    List<RadzenDropDown<int>> components = new List<RadzenDropDown<int>>();

I was then able to address components[1].Reset();

Unfortunately the reset was a bit too powerful; what I really need is a ClearFilter method. Maybe something for a future release? In the meantime I have devised a workaround.
Thanks again.