Returns array of changed record objects.
getChanges([recordsBase])
Returns array of objects.

#### Description

This method is only applicable when you have inline editing for the grid (see .columns property for more information). If user has modified records you can get the changes by calling this method. The .getChanges() method will only return changed record fields, which you can submit to the server. You can also optionally enable the save button on the toolbar (see .show property) or call .doSave method that will submit changed records to the server.
By default, all records in the grid's .records array property will be checked, but you can also supply an array of record objects via the optional recordsBase argument. This is mainly used internally for recursively checking records in a grid tree, but can also be used to look for changes in a specific set of records.
If you have a grid defined in the following way: $('#grid').w2grid({ name : 'grid', columns: [ { field: 'recid', caption: 'ID', size: '50px' }, { field: 'lname', caption: 'Last Name', size: '30%', editable: { type: 'text'} }, { field: 'fname', caption: 'First Name', size: '30%', editable: { type: 'text'} }, { field: 'email', caption: 'Email', size: '40%' }, { field: 'sdate', caption: 'Start Date', size: '120px' }, { field: 'sdate', caption: 'End Date', size: '120px' } ], records: [ { recid: 1, fname: 'John', lname: 'doe', email: 'vitali@gmail.com', sdate: '1/3/2012' }, { recid: 2, fname: 'Stuart', lname: 'Motzart', email: 'jdoe@gmail.com', sdate: '2/4/2012' }, { recid: 3, fname: 'Jin', lname: 'Franson', email: '--', sdate: '4/23/2012' }, { recid: 4, fname: 'Susan', lname: 'Ottie', email: 'jdoe@gmail.com', sdate: '5/3/2012' }, { recid: 5, fname: 'Kelly', lname: 'Silver', email: 'jdoe@gmail.com', sdate: '4/3/2012' }, { recid: 6, fname: 'Francis', lname: 'Gatos', email: 'vitali@gmail.com', sdate: '2/5/2012' } ] }); You can get all the changed records: console.log( w2ui['grid'].getChanges() );