DropDownList: How to clear selection

0 Answers 7 Views
DropDownList
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Joel asked on 15 May 2025, 10:10 PM

The user doesn't have to select anything in my drop down.  So, if they select something and change their mind and want to clear it... how do I do it?

 


                                        <TelerikDropDownList @bind-Value="@SessionOptionIndex1"
                                                             Data="@SessionOption1Items"
                                                             TextField="Name" ValueField="Id" />

Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
commented on 16 May 2025, 11:56 AM

Hi Joel,

The TelerikDropDownList does not include a built-in ClearButton feature. A possible workaround is to include a "None" or equivalent placeholder item as the first option in SessionOption1Items to allow users to clear their selection.

Regards,
Anislav Atanasov
Hristian Stefanov
Telerik team
commented on 16 May 2025, 12:34 PM

Hi all,

Indeed, the TelerikDropDownList does not include a built-in clear button. However, it is still achievable with a standard TelerikButton and some positioning styling: How to Add a Clear Button Inside DropDownList.

Kind Regards,

Hristian

No answers yet. Maybe you can help?

Tags
DropDownList
Asked by
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or