w2grid.getChanges

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: You can get all the changed records:

User Comments

comments powered by Disqus