Этот код хорошо работает в версии 4.2:
xtype: 'radiogroup',
id: 'RadioGroupId',
fieldLabel: 'The Radio Group',
items: [{
xtype: 'radiofield',
boxLabel: 'The first radio',
id: 'FirstRadioId',
name: 'radios',
inputValue: 1,
listeners: {
change: function (cb, newValue, oldValue) {
if (newValue) {
// First radio button has been selected
} else {
// Second radio button has been selected
}
}
}
}, {
xtype: 'radiofield',
boxLabel: 'The second radio',
id: 'SecondRadioId',
name: 'radios',
inputValue: 2,
checked: true
}]