rowDataChanged

Event fires after inline edit of a row in the grid.

Parameters

NameTypeDescription
e {object} event data
id {object} the id of the record
record {object} the data of the row record

Examples

sample

    
 <table id="grid"></table>
 <script>
     var grid = $('#grid').grid({
         primaryKey: 'ID',
         dataSource: '/Players/Get',
         inlineEditing: { mode: 'command' },
         columns: [ { field: 'ID', width: 56 }, { field: 'Name', editor: true }, { field: 'PlaceOfBirth', editor: true } ]
     });
     grid.on('rowDataChanged', function (e, id, record) {
         alert('Record with id="' + id + '" is changed to "' + JSON.stringify(record) + '"');
     });
 </script>