{xtype : 'radiogroup',
items : [{
boxLabel : 'jjj',
name : 'tyutrfytr',
inputValue : 1,
checked : true
}, {
boxLabel : 'kkk',
name : 'dfdsfdsddd',
inputValue : 2,
listeners: {
check : function(cb, rec, ind) {
alert('hhhh');
}
}
}]
}
The code above gives alert no matter whether I press first option or second option. Shouldn’t it alert only when the second option is checked?
the event fires whenever the radio gets checked or unchecked..
check : ( Ext.form.Checkbox this, Boolean checked )
Fires when the checkbox is checked or unchecked.
Listeners will be called with the following arguments:
this : Ext.form.Checkbox
This checkbox
checked : Boolean
The new checked value