1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    48
    Vote Rating
    1
    eaglefox12 is on a distinguished road

      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 - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,093
    Vote Rating
    228
    Answers
    488
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      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
    eaglefox12 is on a distinguished road

      0  

    Default

    Thank you soooooooooo much

Thread Participants: 1

Tags for this Thread