I have to post my question about saveAllEdits again.
I am saving two new records. Initially ListGrid does not have any data.
First alert shows 2. Second shows 2. Third shows 1.
Does not look right to me.
Code:
if (listGrid.getAllEditRows().length != 0) { alert(listGrid.getAllEditRows().length); var grid = listGrid; listGrid.saveAllEdits(0, function() {alert(grid.getAllEditRows().length);}); var grid = listGrid; listGrid.saveAllEdits(1, function() {alert(grid.getAllEditRows().length);}); }
First alert shows 2. Second shows 2. Third shows 1.
Does not look right to me.