I have grid.Panel in my extjs page. There are comboboxes in the grid. On load of the page, the combobox doesn't appear like combobox. Instead they look like empty cell. On click of the cell, they reveal the dropdown box like symbol.
var decisionComboStore = new Ext.data.ArrayStore({
fields: ['abbr', 'action'],
data : [
['proceed', 'Proceed'],
['upNotDone', 'Upload Not Done']
]
});
var stockAuditGrid = Ext.create('Ext.grid.Panel', {
{header: '<center><b>Decision</center>', dataIndex: 'decision', flex:1,
editor: {
xtype:'combo',
store: decisionComboStore,
id: 'decisionCombo',
displayField:'action',
valueField: 'abbr',
mode: 'local',
typeAhead: false,
emptyText: 'Select...',
allowBlank:false
},sortable: false, hideable: false}
});
I don't know what else I should add to make it look like a combo box on load of the document. Also the box should display the default value.
Ext.getCmp('decisionCombo').setValue(store.getAt('0').get('abbr'));
but still on load of the document, the combo box looks like a text field. The dropdown symbol doesn't appear. – Freakyuser