View Full Version : 'changes' parameter of afteredit event for Ext.ux.grid.RowEditor

18 Feb 2010, 4:51 AM
Hello All,

I am trying to use Ext.ux.grid.RowEditor in my appplication. Can anybody please tell me how to use 'changes' parameter of afteredit event for Ext.ux.grid.RowEditor. With the use of record.get('..'), i am able to get edited row. I am little curious about 'changes' parameter.

Please help.

18 Feb 2010, 6:21 AM
Out of my head:

Changes is an object containing only the modified fields and their new values.
The record parameter contains the entire (modified) record.

18 Feb 2010, 6:32 AM
Thanks for your reply.

'changes' is which type of object? How to access values using this object?
Can you give little code...which will show the use of 'changes' object...

18 Feb 2010, 6:48 AM
Again, top of my head:

It's a plain javascript object.
So something along the lines of {'name': 'realjax'} when you have a field called 'name' that had it's value changed.

If you want to make sure, just console.log() it.
If that last line doesn't make sense to you, go getFirebug.com

18 Feb 2010, 7:07 AM
Thanks. It helps. :)

changes.<dataIndex> has given me the updated value. For all the other unchanged columns, it is showing value as undefined...quite expected.

Thanks. :)

18 Feb 2010, 7:54 AM
Here we need to give changes.<dataIndex>, but what if we don't know which column is updated, then how we can access updated column....?