1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    208
    Vote Rating
    0
    Answers
    2
    bee is on a distinguished road

      0  

    Default Answered: which event to be fired for check box check

    Answered: which event to be fired for check box check


    Hi I have check box and when I checked it. I want to get message box, , but I am not able to guess which event to be used. in extjs 3.3.1 I used check event
    I tried activate event, but it doesn't work I am using extjs 4.0.7
    My checkbox definition is :
    Code:
    {
    xtype : 'checkboxfield',
    fieldLabel : 'Label',
    id : 'chkid',
    labelSeparator : '',
    labelWidth : 80,
    boxLabel : '',
    ref: 'chkid',
    name : 'chkid',
    anchor : '100%'
    }
    and my event call is as below :
    Code:
    Ext.getCmp('chkid').on('activate', function(){    
        if (this.checked) {
            console.log('testing');
        }  
    });

  2. it is 'change' in ExtJs 4

  3. #2
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,120
    Vote Rating
    30
    Answers
    85
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    it is 'change' in ExtJs 4

  4. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    208
    Vote Rating
    0
    Answers
    2
    bee is on a distinguished road

      0  

    Default


    This is fixed by change event. Thanks a Mill.

Thread Participants: 1