Автозаполнение выпадающего списка Extjs не работает

I have an editor grid and a combobox is one of its fields. The combobox uses a json store. Here is the combobox code:

var patternCmb = new Ext.form.ComboBox({ //combobox for workers
    store:  dsPatterns,
    valueField: 'pid',
    displayField: 'pname',
    typeAhead:true, 
    lazyRender:true,
    forceSelection:true,
    minChars: 2, 
    valueNotFoundText:"not found",
    editable: true,
    triggerAction: 'all' 
});

After typing the third character the FIRST (not correct) value of the store is selected. What can be the problem?

5
задан lvil 12 April 2011 в 10:32
поделиться