RowReorder after unfinished inline edit fails
RowReorder after unfinished inline edit fails
RagnarGrootKoerkamp
Posts: 48Questions: 14Answers: 1
To reproduce:
- Start inline editing on a cell (do not close/submit)
- Reorder some rows by dragging them.
- Result:
- The inline edit is submitted to the server in the
_tidy
call of theeditor.edit
function. - RowReorder doesn't wait for the
submitComplete
callback in_tidy
, and callseditor.multiSet
. - RowReorder call
editor.submit
, but sincethis.s.processing
is still true, it returns and does nothing. - RowReorder updates the sequence numbers as shown in the table.
- The first submit of the inline edit returns, and editor thinks it is done processing. This sets the sequence number of the row we inline-edited to the value the server thinks is correct.
- Now, the sequence numbers are mixed up.
- The inline edit is submitted to the server in the
Probably, the multiSet
and/or submit
calls at line 510 of dataTables.rowReorder.js
should wait while editor is tidying up any remaining edits, but I don't know whether this is possible in the current framework.
This discussion has been closed.
Answers
Thanks for letting me know about this. I'm afraid I don't have an immediate solution for this, but I will look into it and post back when I do.
Allan