PDA

View Full Version : EditorGridPanel: comboBox only creates textfield!



anakonda8472
22 Dec 2009, 7:27 AM
Hello!

I have an EditorGridPanel with two types of comboboxes: one with static data and one with remote data.
But since Ext 3.3.1 the Combobox component only creates a text field.

Below there is a part of my project:

https://ebridge.sonydadc.com/test/filterWin/filterWin.htm

Any ideas?

Tnanks!

tot2ivn
22 Dec 2009, 8:03 AM
There are tons of new questions everyday in our forum, so please make your question as specific as possible if you really need help from the community. :)

Best,

Totti

anakonda8472
23 Dec 2009, 1:48 AM
The combobox component in the ColumnModel



...
editor: new Ext.form.ComboBox({
store: new Ext.data.SimpleStore({
fields: ['id','name'],
data: [
["string", 'string'],
["integer", 'integer'],
["date", 'date']
]
}),
displayField:'name',
valueField: 'id',
hiddenName: "id",
typeAhead: false,
readOnly: true,
mode: 'local',
triggerAction: 'all',
emptyText:'Choose...',
selectOnFocus:true,
width:100
}),
...


does not create a combobox but only a text field (no trigger button, no dropdown fist on dbl click; see attachment im my first post).

Condor
23 Dec 2009, 4:23 AM
In Ext 3.1 readOnly:true means 'no trigger'.

I assume you want editable:false instead of readOnly:true?

anakonda8472
28 Dec 2009, 6:14 AM
Yes, that's it!

Thanks a lot!!!!