Row Reordening updating positions incorrectly
Row Reordening updating positions incorrectly
Hello all, I am trying to implement Row Reordening on a table to change the listorder.
I have most of it working, after dropping it will also directly change the listorder in our database, but the problem is, the positions are not updated correctly.
For example, I take the first row and quickly pull it down, I can drop it where I want but the rest of the rows are completly out of order. Row 2 jumped to row 6 and 19 to 3.
I first thought it was a problem on my side, but when looking at the example at this site ( http://datatables.net/extensions/rowreorder/examples/initialisation/simple.html ) is has the same problem.
To see, change the amount of entries to 50-100, then just select the first row and quickly pull it down, you can see the rows are out of order.
I have no idea how to fix this, does anybody have an idea?
I searched and I did find the row reordening add-on that was used before they released the extension.
On first look this does work, but they advice to use the extension, so does someone know how to fix this problem in the official extension?
Thank you in advance,
Greetings
This question has an accepted answers - jump to answer
Answers
Does anybody have a clue why this is happening?
I know I don't have an example of my own, buy thought it is obvious enough on the example page.
Hope someone has an idea because now row reordening is not really useable.
To confirm - the issue is when you do a quick drag. Is that correct? A slow drag works for you?
If so, then that has been fixed by this commit and is available in the nightly build. I'll be releasing it soon.
Allan
Thank you Allan, this did indeed fix the problem.
If I had used different key words I maybe would have found that commit.
Anyway thank you for your time. :)