ExtJS combobox acting like regular select
Posted
by
bensiu
on Stack Overflow
See other posts from Stack Overflow
or by bensiu
Published on 2011-01-29T00:26:03Z
Indexed on
2011/01/29
15:26 UTC
Read the original article
Hit count: 215
JavaScript
|extjs
Hi,
I try to use ComboBox on FormPanel, it is defined like this:
xtype: 'combo', name: 'Reasons', store: new Ext.data.ArrayStore({ id: 0, fields: [ 'myId', 'displayText' ], data: [ [ 1, 'Reason 1' ], [ 2, 'Second Reason' ], [ 3, 'Something else' ] ] }), typeAhead: false, mode: 'local', valueField: 'myId', displayField: 'displayText', allowBlank: false, editable: false, forceSelection: true
I would like to act like a ordinary select element, when I have editable as false I not able to re-select anymore, when as true ( default ) I need to remove selection ( by backspace or delete ) in order to re-select.
What else I should turn off in order to downgrade combobox to select or shpuld I consider to use other component instead ?
© Stack Overflow or respective owner