Reputation: 51063
How do I get an extJS combo field to clear its 'value' when the display text is blank or doesn't match a list value, i.e. custom text not in the data store? I'm sure there must be something I'm missing, because such a simple feature can't make an otherwise impressive combo useless.
Upvotes: 2
Views: 6008
Reputation: 3253
Just an idea. In a 'keydown' event do 'validate()' on each keystroke. Then use 'valid' and 'invalid' events to perform an appropriate action (f.e. setValue('')).
Upvotes: 0
Reputation: 29668
You can force to the list using forceSelection, also you might need to put an event on to capture the text value change and invalidate it if it's not in the store, perhaps the valid event I'm not sure.
Upvotes: 0