PDA

View Full Version : Suggestion : ComboBox filter query optionally uses contains instead of beginsWith



si_gee2000
7 Apr 2009, 11:19 AM
A simple and quick suggestion - the ComboBox supports the search using the filter applied by the delayTask. This filter sets the typed string and searches using startsWith on the combo box items. It would be great if I could toggle this so it could also use "contains" allowing a more liberal search..

fother
7 Apr 2009, 11:23 AM
you can implement this :)

si_gee2000
7 Apr 2009, 11:34 AM
True - I'll post some code when I get a moment

:)

fother
7 Apr 2009, 11:40 AM
for example.. in explorer demo.. when you type the letters to search one example.. you can implement this in your combo

Jeff Miner
11 Oct 2011, 1:20 PM
Yes, it's possible to implement remotely or locally, but for the local version you need to modify the store and you need to do it in a risky way:

http://www.sencha.com/forum/showthread.php?97320-ComboBox-Type-Ahead-detect-matching-characters-other-than-from-the-beginning

It would be much better if this were an option contained in the code and maintained by sencha