edit row data - example: error and good processing

edit row data - example: error and good processing

MatoPMatoP Posts: 2Questions: 1Answers: 0

Link to test case: http://live.datatables.net/jahoboqa/5/edit
Description of problem:
Uncomment just one of the three lines in the example and click on the button [Update Row].
The line with the wrong output is marked in the description.
I also tried it with the selector '#example tbody tr:nth-child(2)'.
I got the same results.

Best regards, Martin

Answers

  • kthorngrenkthorngren Posts: 20,142Questions: 26Answers: 4,736

    d[0] = '.'; // this is error

    This is working as expected. You are sorting by the column being updated so when .draw() is called the table will be sorted moving the ' to the top. Is this what you are seeing as the error or is it something else?

    Kevin

  • MatoPMatoP Posts: 2Questions: 1Answers: 0
    edited June 2021

    yes, sorting
    OK, thanks

Sign In or Register to comment.