[2.0.2] EditorGridPanel - afteredit event not firing when leaving cell unchanged.

January 7th, 2009   Filed Under naaktbelgisch.com   edit

  • I need to know when a user has started to edit a cell, using beforeedit, and then when that user leaves the cell, afteredit. The beforeedit always fires as expected but the afteredit does not fire if the user leaves the cell without changing the value. Is this a bug or did I misunderstand the purpose of the afteredit event? I understand the value has not been modified but I need to know if the user is currently in edit mode but you will never know they left edit mode if you are waiting for the afteredit event.


  • I guess nobody else has attempted this and thought I'd include a small example which should work on any EditorGridPanel. The beforeedit fires as expected when I double click the cell. The afteredit event only fires if the value was changed. I expected the afteredit event to fire every time the user leaves the edit mode for a cell regardless if the cell was modified or not.
    newGrid=new Ext.grid.EditorGridPanel({
    title:'Sample Grid',
    ds:myStore,
    cm:myColumnModel,
    selModel:new Ext.grid.RowSelectionModel({singleSelect:true}),
    frame:true,
    height:200,
    width:985,
    stripeRows:true,
    trackMouseOver:true,
    loadMask:true
    });

    newGrid.on({
    beforeedit:function(e){ console.info('beforeedit';return true; },
    afteredit:function(e){ console.info('afteredit');return true; }
    });

    I hope this is enough information for someone to help me.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [2.0.2] EditorGridPanel - afteredit event not firing when leaving cell unchanged. , Please add it free.