Results 1 to 3 of 3

Thread: How to check if checkboxgroup is checked or not

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    48
    Vote Rating
    1
      0  

    Default Answered: How to check if checkboxgroup is checked or not

    I am trying to check if atleast one of the checkbox is checked. How can I do this. Please help.
    Code:
    this.myCheckBox = Ext.create('Ext.form.CheckboxGroup', {
                id: 'cbs',
                scope: this,
                disabled: true,
                columns: 1,
                vertical: true,
                listeneres: {
                       scope: this,
                       change: function (oldValue, newValue) {
                         alert(this.checked());
                         //alert(this.isChecked());
                      }
                }
            });
            this.myCheckBox.add({ boxLabel: 'Q1', name: 'Q1', inputValue: true, uncheckedValue: false });
            this.myCheckBox.add({ boxLabel: 'Q2', name: 'Q2', inputValue: true, uncheckedValue: false });

  2. See if checkboxgroup's getChecked() method is what you're looking for.

  3. #2
    Sencha - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Answers
    501
    Vote Rating
    257
      0  

    Default

    See if checkboxgroup's getChecked() method is what you're looking for.

  4. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    48
    Vote Rating
    1
      0  

    Default

    Thank you soooooooooo much

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •