PDA

View Full Version : select radio button



wp.joju
27 Jan 2010, 3:50 AM
how can i set one of the radio button as selected?




{
xtype: 'radiogroup',
fieldLabel: 'Share Information',
name: 'shareinfo',
labelStyle: 'width:165px;',
items: [
{ boxLabel: 'Yes', name: 'shareinfo', inputValue: 'Yes' },
{ boxLabel: 'No', name: 'shareinfo', inputValue: 'No' }
]
}



i've tried frm.findField('shareinfo').setValue([true,false]); but its not working, i'm using extjs v.3.0.3

jsemmanuel
27 Jan 2010, 5:13 AM
setValue('Yes');