Cannot edit more than one field inline at a time
Cannot edit more than one field inline at a time
Hi everyone,
I have a datatable which contains multiple rows and multiple fields - in which it contains photos.
I implemented a drag and drop interface to the table. That works fine. I can drag and drop photos among different records and fields.
The problem comes when I tried to save the changes to the database.
The logic is like this:
In the dragstart event, I saved the photo's original row and column in a variable.
Then in the drop event, I also save the photo's new row/column in another variable.
Then I called the updateRecord function which is like this:
table.cell(drag_from).focus();
editor.inline().submit();
table.cell(drag_to).focus();
editor.inline().submit;
delete drag_from;
delete drag_to ;
Then the error "Cannot edit more than one field inline at a time" comes up.
I think that (but I am not certain) error comes up because of the first ajax submit has NOT completed yet.
Would anyone please advise.
Thank you
Jim