PDA

View Full Version : ComboBox has wrong initial value for minChars



jheid
29 Apr 2007, 1:36 PM
Hi.

I'm using the following for a cell editor:


new Ext.grid.GridEditor (new Ext.form.ComboBox ({
store: new Ext.data.SimpleStore ({
fields: ['value','name'],
data: getData (predefinedValues)
}),
displayField: 'name',
valueField: 'value',
typeAhead: false,
lazyRender: true,
editable: false
}));


The values (=names) are "ja", "nein", "unbekannt".

The editor works if the cell has a long value ("nein" and "unbekannt") but when the value is "ja" (just two chars), the three choices aren't displayed when editing and clicking on the right buttons (no popup appears).

The problem seems to be the default value 4 of minChars.

It should be ignored (or set to 1) when editable/typeAhead is set to false.

When adding


....
typeAhead: false,
lazyRender: true,
editable: false,
minChars: 1
}));


it works.


Regards,
J

jack.slocum
30 Apr 2007, 4:14 AM
That's not your problem. You need to set the triggerAction:'all' config option.

jheid
30 Apr 2007, 6:12 AM
That's not your problem. You need to set the triggerAction:'all' config option.

Ah, okay, that works, too. Thanks for the hint. So, it's no bug, sorry.