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
close icon

Setting SelectedIndex property of the AutoComplete to -1 control does not reset the index.

I am using the version 4.3.0.31.

I have several Autocomplete control on the same form and I try to rest the index before displaying the dropdown using:
void _autoComplete_DropDownDisplayed(object sender,EventArgs e) {
//TODO: does not seem to work well ask syncfusion
this._autoComplete.SelectedIndex = -1;
this._autoComplete.SelectedValue = "";
}

The index is set to the same position as the last time I make a choice.

1 Reply

AR Anupama Roy Syncfusion Team October 5, 2006 11:28 AM UTC

Hi Oleg,


The SelectedIndex property of AutoComplete or ComboBoxAutoComplete does not serve the same purpose like a ComboBox control SelectedIndex and the implementation is quite different.According to the current implementation of AutoComplete,last browsed item will be set as the SelectedItem and index of the matching item is used internally to update this Text.

I will investigate on this furthur and let you know whether there is an alternative way to clear the last browsed item before the dropdown is displayed.

Thanks for choosing Syncfusion products.

Regards,

Anu.


Loader.
Live Chat Icon For mobile
Up arrow icon