Results 1 to 6 of 6

Thread: 'changes' parameter of afteredit event for Ext.ux.grid.RowEditor

  1. #1
    Ext User KSagar's Avatar
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    39

    Question 'changes' parameter of afteredit event for Ext.ux.grid.RowEditor

    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.

  2. #2
    Sencha User realjax's Avatar
    Join Date
    Aug 2009
    Location
    Netherlands
    Posts
    412

    Default

    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.

  3. #3
    Ext User KSagar's Avatar
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    39

    Question

    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...

  4. #4
    Sencha User realjax's Avatar
    Join Date
    Aug 2009
    Location
    Netherlands
    Posts
    412

    Default

    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

  5. #5
    Ext User KSagar's Avatar
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    39

    Default

    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.

  6. #6
    Ext User KSagar's Avatar
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    39

    Default

    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....?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •