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.
Unfortunately, activation email could not send to your email. Please try again.

AutoCompleteControl not returning SelectedItem or SelectedText correctly

Thread ID:

Created:

Updated:

Platform:

Replies:

79872 Mar 2,2009 05:27 PM Mar 3,2009 07:34 AM Windows Forms 1
loading
Tags: Tools
Ashes Mukherjee
Asked On March 2, 2009 05:27 PM

STEPS TO REPRODUCE:
1) Click on AutoComplete enabled ComboBox control down arrow icon button
2) Start typing, notice combobox edit part shows matching item, which is also selected (highlighted)
3) Press down arrow to select matching entry in expanded dropdown list.
4) On hitting the key, SelectedItem_Changed event is fired, however, querying Control.SelectedItem is null.

This problem is not seen when mouse is used to select matching entry from control.

Hard to provide code snippet, but can furnish more specifics on properties queried as necessary.

Thanks



Fathima Shalini P [Syncfusion]
Replied On March 3, 2009 07:34 AM

Hi Ashes,

Thank you for your interest in Syncfusion Products.

I have tested the issue with the simple sample in which I have added a combobox with autocomplete. I clicked the dropdown and typed in the combobox and selected the item displayed in the dropdown using arrow keys. The SelectedIndex_Changed event is not triggered and the SelectedItem property is not updated. But when selecting item using mouse the SelectedIndex_Changed event is triggered and SelectedItem property gives correct value. Please refer to the sample and videoclip provided below:

Sample:

http://files.syncfusion.com/support/Tools.Windows/7.1.0.21/F79872/main.htm

Videoclip:

http://files.syncfusion.com/support/Tools.Windows/7.1.0.21/F79872/VideoReference.zip

Could you please let me know if is this a issue you have mentioned or if I have misunderstood your requirement, could you please let me know in detail, so that I could work out in depth and provide you a better solution at the earliest?

Please let me know if any concerns.

Regards,
Fathima


CONFIRMATION

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.

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.

;