Built in clear button in dropdown

I have an syncfusion dropdown control.Is there any built-in clear button in dropdown to clear the selected value in dropdown??

Or else any hot key to clear selected value in dropdown??


3 Replies

BC Berly Christopher Syncfusion Team November 17, 2021 11:17 AM UTC

Hi KINS, 
  
Greetings from Syncfusion support. 
  
We have provided the support clear the dropdown values using clear icon with help of “ShowClearButton” property as mentioned in the below code example. 
  
  
<SfDropDownList TValue="string" ShowClearButton=true TItem="Countries" Placeholder="e.g. Australia" DataSource="@Country"> 
    <DropDownListFieldSettings Text="Name" Value="Code"></DropDownListFieldSettings> 
</SfDropDownList> 
 
  
Screenshot: 
 
  
  
  
Regards, 
Berly B.C 



KI KINS November 17, 2021 12:11 PM UTC

Thanks



BC Berly Christopher Syncfusion Team November 17, 2021 01:32 PM UTC

Hi KINS, 
  
Most welcome. Please let us know if you need further assistance on this. 
  
Regards, 
Berly B.C 
 


Loader.
Up arrow icon