I'm using the w2grid widget on inline editing mode.
My program needs save changes to database each time the user introduces a new value into the cell grid.
To do this, I defined a onChange
event to the grid, and when onChange
is triggered the save()
method is called:
onChange: function(event) {
w2ui[event.target].save();
}
The problem is that the save()
method sends old data values to the server (It doesn't send the last update). At the first modification getChanges()
array is empty. And the next onChange
event will not send the last modification, but the previous modified values.
What I'm doing wrong?