Our blazing fast Grid component built with pure JavaScript


Post by fabio.mazza »

Hi jaiarih, you can do this still using beforeUpdate event:

new Grid({
    ....

store : {
    listeners : {
        beforeUpdate({record, changes}) {
            console.log("Previous value for field 'yourFieldName': " + record.yourFieldName);
            console.log("New value for field 'yourFieldName': " + changes.yourFieldName);
        }
    }
},

....
}

or you can do the samething with update event

grid.store.on('update', (event) => {
    console.log(event);
});

Best regards,
Fabio


Post Reply