Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Odd Behavior with UltraComboEditor
posted

I'm working with the 8.1 version of the UltraComboEditor and I'm seeing something of an oddity and just wanted to get some feedback on it.  I have a UltraComboEditor dropped onto a form, it is databound to a collection of objects, the DisplayValue and ListItemValue are both set to the same property of the object, the style is DropDownList and AutoComplete is set to true.  The thing I see is that when AutoComplete is set to true and the user types letters while focus is on the control it sometimes will jump appropriately to the right element in the list and sometimes it won't.

For example say the list contains:
Yes
No
Unknown

The user goes in and presses the 'N' key, the control will jump have the index jump down to the No item and select it, however if you press say 'D' and then 'N' it sometimes doesn't do anything.  It seems to happen the further down the alphabet you go.  It is a bit sporatic but still noticable.  When I set AutoComplete to false everything works as expected.  I'm mostly just curious if this is the fix since I haven't really found anything in the docs or the forums that would explain this. 

Thanks.

Parents
  • 45049
    Verified Answer
    posted

    If I understand what you've described correctly, then I believe this is expected.

    What's happening is that WinComboEditor is trying to process input that is "quickly entered" as a single input.  In other words, if you press "D" and then "N", it looks for an entry that starts with "DN' and (of course) doesn't find it.  You can test this more easily if you have a number of entries that all start with the same letter:

    Aardvark
    Aberforth
    Able
    Apple
    Axis
    Pear

    In this list, if you hit "AP" quickly, it should jump to "Apple".  If you hit "A," pause, then hit "P," you'll start at "Aardvark" and end up at "Pear".

    This behavior is keyed to the AutoComplete property, and the above explains what happens when the control's drop-down style is DropDownList.  If you turn AutoComplete off, then each key press is treated as an independent input.

    The other drop-down styles instead match the text as input-so-far and fills in the rest of the input area with the first match it finds.  DropDownList is different since it technically doesn't allow "direct" input into its input area.

Reply Children