PDA

View Full Version : [4.0.1] ComboBox in PropertyGrid



Antronak
25 May 2011, 1:18 AM
Hi,

I have ComboBox as CustomEditor in PropertyGrid. First time when I want to open ComboBox, its value is cleared. I have to click another time to open ComboBox.


{
xtype: 'propertygrid',
itemId: 'read',
animCollapse: false,
border: false,
collapsible: true,
hideHeaders: true,
sortableColumns: false,
title: "Read",
customEditors: {
'mode': Ext.create('Ext.form.field.ComboBox', {
store: {
fields: ['id', 'caption'],
data: [{
id: 1, caption: 'test1'
}, {
id: 2, caption: 'test2'
}]
},
editable: false,
displayField: 'caption',
valueField: 'id',
queryModel: 'local'
})
},
source: {
'mode': 1,
'community': 'test'
}