PDA

View Full Version : ComboBox in Grid - someitmes opens, sometimes doesn't



paulharv
24 Apr 2012, 4:33 AM
Weird....

I have a simple grid with one of the columns using a ComboBox.
Sometimes, when I double click a cell the options display, sometimes they don't.
When they don't display, I can get them to display by deleting the existing contents of the cell.
Also, and perhaps this is related, it seems like typeAhead is on, even though I have specified it to be false.

Here my conbobox...


var comboTest = {
xtype: 'combo',
typeAhead: false,
store: {
xtype:'arraystore',
data: [['AAA'],
['BBB'],
['CCC'],
['DDD']],
fields: ['name']
},
displayField: 'name',
mode:'local'
};


Which I reference like this


var columnModel = [
{
header : 'Last Name',
dataIndex : 'lastname',
sortable : true,
editor : comboTest
},
...
]

paulharv
24 Apr 2012, 4:39 AM
I need to specify triggerAction:'all'