Results 1 to 8 of 8

Thread: How to prevent selection of item in combo?

  1. #1

    Default How to prevent selection of item in combo?

    I have a combo that contains a list of items. As the user types in the list, the list automatically narrows to show matching text. This is fine. However, one change that I need to make is that if the text the user types in the field does not completely match an item in the list, I DON'T want the next closest item selected when the user tabs off the combo. That is how it currently works. I have played around with different combinations of typeAhead, fourceSelection, selectOnFocus, but to no avail. Any help on this would be appreciated.

  2. #2

    Default

    Anyone?

  3. #3

    Default

    Can someone please help me on this?

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    I think this has been reported and fixed.

    Go to http://www.extjs.com/deploy/dev/exam...rm/combos.html

    And type "Califoop" in. At first you will see it narrow the "C" states down until only California is left, and then that will disappear. If you then tab off it does not select the closest match.

  5. #5

    Default

    Quote Originally Posted by Animal View Post
    I think this has been reported and fixed.

    Go to http://www.extjs.com/deploy/dev/exam...rm/combos.html

    And type "Califoop" in. At first you will see it narrow the "C" states down until only California is left, and then that will disappear. If you then tab off it does not select the closest match.
    Just tried it, and actually it does. If I type in Califoop, and tab off, California is then selected.

  6. #6
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Old version. Probably same with your Button problem.

  7. #7

    Default

    Old version of what? I'm using the sample off the ExtJS web site with FireFox 3.5.5.

  8. #8

    Default

    Okay, it actually does work (somewhat) in the second combo. If I type Califoon, and tab off, it doesn't select anything. Which is perfect. However, I also need to be able to type in Ca, and not have it select California for me. It is currently doing that. I only ever want the item to be selected if an exact match.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •