The 'getChanges' method reruns only those rows where the user has edited by calling 'beginEdit' and 'endEdit' methods. The 'updateRow' method does not affect the result set of the 'getChanges' method.
For me this seems like a bug... The same thing happens when trying to append a row to treegrid, example
http://www.jeasyui.com/easyui/demo/treegrid/editable.htmlvar node = {"id":11,"name":"Marketing","persons":5,"begin":"4/1/2010","end":"5/1/2010","progress":40};
$('#tg').treegrid('append',{data:[node]});
$('#tg').datagrid('getChanges','inserted'); // returns empty array
$('#tg').treegrid('getChanges','inserted'); // this does not work either, empty array
I have to force it like this:
$('#tg').data().datagrid.insertedRows.push(node);
No matter if I call beginEdit, endEdit. With datagrid appendRow the getChanges method returns correct values, with updateRow does not.