PDA

View Full Version : [CLOSED-221]Radio buttons checked if value is set



meyerovb
11 Aug 2010, 11:39 AM
.93 windows chrome
The second two radio buttons are checked on load, checkbox doesn't have the same problem (all checkboxes unchecked on load)



Ext.setup({ onReady: function () {
var registration = new Ext.form.FieldSet({
fullscreen: true,
items: [
{ xtype: 'radio' },
{ xtype: 'radio', value: 'a' },
{ xtype: 'radio', value: 'a', checked: false },
{ xtype: 'checkbox' },
{ xtype: 'checkbox', value: 'a' },
{ xtype: 'checkbox', value: 'a', checked: false }
]
});
}});

Jamie Avins
12 Aug 2010, 8:55 AM
Interesting, thank you for the report.

evant
8 Sep 2010, 8:21 PM
In this case you want to use the inputValue config, not value. Under the hood it tries to set the underlying value of the checkbox to 'a', which will succeed.