title: How to set RadioGroup setValue() function in Ext JS?
body: <p>I have a Radio group having radio buttons Male and Female.
  Please see below code</p>
  
  <pre><code>{
      xtype: 'radiogroup',
      fieldLabel: 'Gender',
      name: 'rbGender',
      defaults: {
          flex: 1
      },
      layout: 'hbox',
      items: [
          {
              boxLabel: 'Male',
              name: 'gender',
              inputValue: false,
              //checked: true,
              id: 'radio1'
          },
          {
              boxLabel: 'Female',
              name: 'gender',
              inputValue: true,
              id: 'radio2'
          }
      ]
  }
  </code></pre>
  
  <p>I am unable to set these radio fields when I am getting values from database of gender field Male or Female(true/false).</p>
  
  <p>please see below code.</p>
  
  <pre><code> if (rec[0].gender == true) {
       me.form.getForm().findField('gender').setValue(true);
   }
   else if (rec[0].gender == false) {
       me.form.getForm().findField('gender').setValue(true);
   };
  </code></pre>
  
  <p>how to set male female radio button by database gender field value</p>