PDA

View Full Version : Cannot get ComboBox to filter words that don't match input



Musical Shore
2 Feb 2010, 1:22 PM
Hi,

I am trying to get a combobox to filter out the words in the dropdown list that don't match the user-entered stem.

e.g.


User Input=outl
Expected List = outlook,outland, outlook client, outland, outlying
Actual List = outlook,outland, outlook client, outland, outlying
User Input=outlo
Expected List = outlook, outlook client
Actual List = outlook,outland, outlook client, outland, outlying Here is my comboBox code:

var search = new Ext.form.ComboBox({
store: store,
typeAhead: false,
loadingText: 'Searching...',
width: 494,
name: 'searchComboBox',
mode: 'remote',
hideTrigger:true,
queryParam: 'userInput',
hiddenName: 'searchComboBoxInput',
applyTo: 'search',
itemSelector: 'div.search-string',
displayField: 'termResult',
valueField: 'termResult',
triggerAction: 'all'
});
Thanks,

Michael