1. #1
    Touch Premium Member msuresh's Avatar
    Join Date
    Dec 2007
    Location
    Bangalore, India
    Posts
    220
    Vote Rating
    1
    msuresh is on a distinguished road

      0  

    Question Event AFTEREDIT is not triggered when CheckBox is checked

    Event AFTEREDIT is not triggered when CheckBox is checked


    We need to enable the save button on any modification in the Store. The below code is working fine however it fails for checkbox.

    Please let us know if any workaround is there to solve this problem.

    Code:
    grid4.addListener('afteredit', function (e){			
    	grid4.topToolbar.items.get('export').disable();
    	grid4.topToolbar.items.get('import').disable();
    	grid4.topToolbar.items.get('save').enable();
    });
    
     var checkColumn = new Ext.grid.CheckColumn({
           header: "Ranking",
           dataIndex:'ranking',
           width:50
     });
    Thanks
    Suresh M R

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    try using the the 'checked' event

  3. #3
    Touch Premium Member msuresh's Avatar
    Join Date
    Dec 2007
    Location
    Bangalore, India
    Posts
    220
    Vote Rating
    1
    msuresh is on a distinguished road

      0  

    Default


    No, event "checked" is not working...

  4. #4
    Touch Premium Member msuresh's Avatar
    Join Date
    Dec 2007
    Location
    Bangalore, India
    Posts
    220
    Vote Rating
    1
    msuresh is on a distinguished road

      0  

    Default


    Is it a bug?

  5. #5
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    I'm sorry - it's check. I responded early in the morning with eye crusties.

    http://tdg-i.com/img/screencasts/2008-02-22_0948.swf
    PHP Code:
    var cb = new Ext.form.Checkbox({
        
    applyTo    'checkbox1',
        
    name    'checkbox1'
        
    boxLabel'test label'
    });



    cb.on('check'
        function(
    fieldnewValoldVal ) { 
            
    Ext.MessageBox.alert('WOOT!''Checkbox has been clicked');
        }
    ); 

  6. #6
    Ext User para's Avatar
    Join Date
    Apr 2007
    Location
    Redmond, WA
    Posts
    918
    Vote Rating
    -2
    para has a little shameless behaviour in the past

      0  

    Default


    Read the docs. You'll notice that 'afteredit' doesn't exist for Checkbox, but 'check' does.
    Reading the docs will help you, and us.
    http://extjs.com/deploy/dev/docs/?cl....form.Checkbox

  7. #7
    Touch Premium Member msuresh's Avatar
    Join Date
    Dec 2007
    Location
    Bangalore, India
    Posts
    220
    Vote Rating
    1
    msuresh is on a distinguished road

      0  

    Default


    Thanks djliquidice.

    I tried, it works for Form but not for the Grid. I am using CheckColumn.

  8. #8
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Quote Originally Posted by para View Post
    Reading the docs will help you, and us.
    ssh!! don't tell all of our secrets

  9. #9
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    that's a bit different as it's *not* using a checkbox. try the 'click' event.

  10. #10
    Touch Premium Member msuresh's Avatar
    Join Date
    Dec 2007
    Location
    Bangalore, India
    Posts
    220
    Vote Rating
    1
    msuresh is on a distinguished road

      0  

    Default


    Something Tricky, I have tried all possible events.