ComboBox suggestion not updating value

Posted by: kbj on 28 April 2018, 2:08 pm EST

    • Post Options:
    • Link

    Posted 28 April 2018, 2:08 pm EST

    Hi,

    When a combobox is set up like:

    comboBox.AutoCompleteMode = AutoCompleteMode.Suggest

    comboBox.AutoCompleteSource = AutoCompleteSource.CustomSource

    comboBox.AutoSuggestMode = AutoSuggestMode.Contains

    selecting a suggested item (by clicking or tabbing) does not update the combBox.value. This works fine if the comboBox.AutoCompleteSource = AutoCompleteSource.ListItems.

  • Posted 28 April 2018, 5:01 pm EST

    OK, a little more detail . . .

    In the above situation, the suggested item WILL show up in the text part of the drop down if the suggested item also appears in the items list. In the standard, non c1comboBox, the suggested item will appear even if the item is not in the itemlist.

    use the below example with a C1ComboBox and a standard comboBox, type in “J” into the combo box and the suggestions January, June and July will show up. If you select “June” from the suggestion list the C1ComboBox does not update the text and the standard combo box does.

    ComboBox1.AutoCompleteMode = AutoCompleteMode.Suggest

    ComboBox1.AutoCompleteSource = AutoCompleteSource.CustomSource

    ComboBox1.Items.AddRange(New String() {“January”})

    ComboBox1.AutoCompleteCustomSource.AddRange(New String() {

    “January”,

    “February”,

    “March”,

    “April”,

    “May”,

    “June”,

    “July”,

    “August”,

    “September”,

    “October”,

    “November”,

    “December”

    })

  • Posted 30 April 2018, 4:34 am EST

    Hello,

    Thank you for sharing the code snippet.

    I could observe the issue at my end and it’s a bug in control, hence I have forwarded it for fix [ID: 319847].

    I will get back to you once it is fixed.

    Regards,

    Ruchir Agarwal

  • Posted 5 July 2018, 2:49 am EST

    Hi ,

    I am glad to inform you know that the issue you reported has now been fixed. Now, ComboBox suggestion is updating value.

    In order to use the same ad verify the fix, please upgrade to the latest version available using C1Live (C:\Program Files (x86)\ComponentOne\C1Live) or use the following link to download the new build version: http://prerelease.componentone.com/dotnet40/C1WinForms/2018-T2/C1WinForms.4_4.0.20182.314.zip

    Thanks,

    Ruchir

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels