Hello, I use handsontable in a bandwidth-constrained and less stable scenario, so when I edit some cells one by one in a row, I want to save these cells’ data asynchronously at a time after I leave the row, not only save one cell’s data at a time on ‘afterChange’. Please how to realize such a function? Which event I could use? thanks.
I’ll investigate the issue and will be back to you as soon as possible.
Hi @kailin.lu,
Your scenario can be achieved by combining two hooks afterChange
which is responsible for collecting all changes to separate object and afterSelectionEnd
for triggering asynchronously saving data after leaving edited row.
I’ve prepared demo at http://jsfiddle.net/xhmxLbkr/1/. Does this example solve your issue?
Hi @budnix,
Thank you very much! Your example works for single line edit mode, but it seems it can’t apply to drag and drop when I update multiple rows at a time, and the ‘afterSelectionEnd’ event won’t be triggered when I leave handsontable, the last change might be lost.