I'm using your Batch Editing example, but using local data instead of remote.
When I change entries in cells the 'Undo' and 'Redo' work fine so it appears that the changes are correctly tracked. But when I press 'Get Changes' all the arrays in the console are just empty (0 length).
If I use the 'Add Button' that works fine and I can see the addList array has entries.
Also if I copy and paste data from Excel and it automatically adds new rows to the bottom of the grid then the addList array also has entries.
Why do you think I just get empty array for update/change cells even though the change tracking appears to be on and working?
I've tried changing getChanges format to 'raw' and null but neither make a difference.
I have a number column used as a recIndx like this...
var colM = [
{ title: "", maxWidth: 30, dataIndx: "num", dataType: "number", align:"center", editable: false, hidden: false, copy: true, cls: 'ui-state-default',
render: function( ui ){
return "" + (1 + $("#grid_php").pqGrid('getRowIndx',{rowData: ui.rowData}).rowIndx);
}
},
and...
dataModel: { recIndx: "num", data: data },
and I use your GetChanges button from your example like this...
{ type: 'button', icon: 'ui-icon-cart', label: 'Get Changes', cls: 'changes', listener:
{ "click": function (evt, ui) {
var changes = grid.getChanges({ format: 'byVal' });
try {
console.log(changes);
}
catch (ex) { }
alert("Please see the log of changes in your browser console.");
}
},
options: { disabled: true }
},
Why are my change arrays in the console always empty?