We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

I want to clean up a SfComboBox from the selected values

Thread ID:





165515 Dec 11,2018 09:18 PM UTC Jun 2,2021 05:08 AM UTC Xamarin.Forms 8
Tags: SfComboBox
Asked On December 11, 2018 09:18 PM UTC

I would like to do what with the traditional combobox is done with the command:
comboBox.SelectedIndex = -1;
In that case the text is cleaned up and the combobox is in the initial state as if there had been no selection.
I can do this when loading the form with SfComboBox.
But if I make a selection after I can no longer clean up the SfComboBox .
It gives me the error: index -1 not valid, it accepts only positive values and greater than 0



Arulraj A [Syncfusion]
Replied On December 12, 2018 08:47 AM UTC

Hi Maurizio, 

Thanks for using Syncfusion product. 

We can reproduce your reported scenario. We have confirmed this is a bug so we have logged the bug report for this issue “SfComboBox not clear the selected value when resetting the SelectedIndex” and it will be available on our upcoming main release 2018 Volume 4 which will be expected at end of this December 2018. 

Moreover, you can resolve this issue by using TextBox.Clear method. Please refer the following code example and the sample. 

Code example 

Arulraj A 

Shankar Sharma
Replied On February 23, 2021 12:47 PM UTC

Hi Syncfusion Team,

Any update on above concern, Also I am still not able to clear/reset the SfComboBox selected value by  using SelectedIndex = -1

Looking forward to hearing from you at earliest.


Elakkiya Muthukumarasamy [Syncfusion]
Replied On February 25, 2021 09:10 AM UTC

Hi Shankar, 
Thanks for your patience. 
We have checked your reported issue “SfComboBox not clear the selected value when resetting the SelectedIndex” with the latest release version setting the SFComboBox SelectedIndex is -1 the text clear properly without throwing the exception. Please refer the below sample for the same. 
Please try it with the provided sample and if you still facing this issue please share us your currently using syncfusion product version details, we will check and update you the prompt solution based on it. 

Andrew Hoke
Replied On May 11, 2021 07:41 PM UTC

I can also confirm that the selected value is not being cleared when the SfComboBox SelectedIndex is set to -1.

Platform: iOS 14.5
Device: iPhone 11 Simulator
SyncFusion NuGet: version
Xamarin.Forms version:

Edit: I see this thread is regarding WinForms, and my issue is with the Xamarin.Forms package. I hope the issue can still be investigated.

Suganya Sethuraman [Syncfusion]
Replied On May 17, 2021 01:52 PM UTC

Hi Andrew,

We are currently checking the reported issue at our end and we will update the details on May 19, 2021. We appreciate your patience until then.
Suganya Sethuraman

Suganya Sethuraman [Syncfusion]
Replied On May 19, 2021 01:09 PM UTC

Hi Andrew,

Thanks for your patience.

We have fixed the reported issue and Please download the path from the following location.

Please find the patch setup from below location:



Please find the patch assemblies alone from below location:



Please find the NuGet from below location:


Assembly Version:


Please note that we have created this patch for version specifically to resolve the following issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.

Note: Please clear the cache, before the apply the provided patch


This fix will be included in our upcoming weekly NuGet release, which will be available on May 25, 2021.

Suganya Sethuraman.

Suganya Sethuraman [Syncfusion]
Replied On May 25, 2021 11:28 AM UTC

Hi Andrew,

Sorry for the inconvenience.

We could not include this fix in our today weekly. So, we have generated custom NuGet with version

Custom NuGet: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ComboCustom-936669058

We will include fix in our upcoming weekly NuGet release without delay. Next release will be available on June 1,2021

Suganya Sethuraman.

Suganya Sethuraman [Syncfusion]
Replied On June 2, 2021 05:08 AM UTC

Hi Andrew,

Thanks for your patience.

We have included the fix in our latest Weekly NuGet release v19.1.0.66 which is available for download (https://www.nuget.org/ ). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.

Suganya Sethuraman.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon