title: How to check all the checkboxes in checkbox group in extjs?
body: <p>I have a checkbox group with somany checkboxes in it. I want to check all of them once when a button clicked. These checkboxes are created dynamically. </p>
  
  <pre><code>var json = result.responseText;
      var temp = JSON.parse(json);
  
      for(var i=0;i&lt;Object.keys(temp[newValue]).length;i++){           
          menuArray.push({
              xtype: 'checkboxfield',
              boxLabel: (temp[newValue][i]).split("_").join(" "),
              name: temp[newValue][i],
              id:temp[newValue][i],
              inputValue: 'true',
              uncheckedValue: 'false',
              formBind: false
          });
      }
  
      checkboxGroup = new Ext.form.CheckboxGroup({
          xtype: 'checkboxgroup',
          fieldLabel: '',
          id:'moduleCheckboxGroup',
          columns: 1,
          items: menuArray
      });
  
      permissionPanel.removeAll();
      permissionPanel.add(checkboxGroup);
  </code></pre>
  
  <p>Thanks in advance!</p>