Hi,
Is there any simple way to dynamically create a combo from javascript without using a store? I tried all possible ways and it doesn't work correctly
Printable View
Hi,
Is there any simple way to dynamically create a combo from javascript without using a store? I tried all possible ways and it doesn't work correctly
Store is required, what exactly troubles with a store do you have?
Code:var combo = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
lazyRender: true,
mode: 'local',
store: new Ext.data.ArrayStore({
id: 0,
fields: ['myId', 'displayText'],
data: [
[1, 'item1'],
[2, 'item2']
]
}),
valueField: 'myId',
displayField: 'displayText'
});