I want to use a combobox that gets a preselected value from a data binding, as well as possible options for binding data to the same storage. The configuration of the panel items is as follows:
{
xtype: 'combobox',
name: 'language_default',
fieldLabel: 'Default Language',
multiSelect: false,
displayField: 'title',
valueField: 'language_id',
queryMode: 'local',
bind: {
value: '{database.language_default}',
store: '{database.languages}'
}
}
If I use this configuration, the dropdown repository is invalid and invalid.
Is it possible to bind the selected option and also the available combobox options ?
source
share