PDA

View Full Version : Radiogroup - Only one button checked at a time?



venomizer
18 Aug 2009, 7:51 AM
Am I missing something obvious here, or should I be able to configure my Radiogroup so that only one radio button in that group can be checked at once (should this not be default behaviour?). At the moment, the buttons will remain checked even when I click another.

My code:


var testRadio = new Ext.form.RadioGroup({
columns: 1,
items: [{
boxLabel: 'Test 1,
name: 'test1'
},{
boxLabel: Test 2 ',
name: 'test2'
},{
boxLabel: 'Test 3',
name: 'test3'
}
]
});

Lukman
18 Aug 2009, 8:08 AM
The items should have the same name.

venomizer
18 Aug 2009, 8:23 AM
Ahh okay, works now. Thanks