How do ExtJS set and get the selected state of the radio control


To obtain


function IsChecked(radioId) {
return Ext.getCmp(radioId).checked;
}

Set up the


function SetRadio(radioId, isChecked) {
Ext.getCmp(radioId).setValue(isChecked);//Or setValue("on") can be set to select
}