Remove the X option

Hi, is there a way to remove the X (in a circle) option/icon from the control that allows the user to delete the currently selected value?


1 Reply 1 reply marked as answer

KP Kamalesh Periyasamy Syncfusion Team February 14, 2025 05:22 AM UTC

Hi Phunction 


We have reviewed your query and the SfComboBox control includes a built-in clear button (an "X" icon) that allows users to clear the selected value. If you want to remove this button, you can set the IsClearButtonVisible property to false. By doing so, the clear button will not be displayed in the UI, preventing users from clearing the selection manually. 
 

<editors:SfComboBox x:Name="comboBox"

                     WidthRequest="250"

                     IsEditable="True"

                     HeightRequest="50"

                     IsClearButtonVisible="false"

                     DisplayMemberPath="Name"

                     TextMemberPath="Name"

                     ItemsSource="{Binding SocialMedias}" />


We have attached a sample below that demonstrates this functionality. Please refer to it for a complete working example. Let us know if you need further assistance!  


Regards, 

Kamalesh P 


Attachment: ComboBoxIsClearButton_94d116a0.zip

Marked as answer
Loader.
Up arrow icon