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

  • 2020-03-30 01:26:43
  • OfStack

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
} 

Related articles: