Row reordering not working
Row reordering not working
![yelob](https://secure.gravatar.com/avatar/a2a3b35697d7565825134b27a08adecf/?default=https%3A%2F%2Fvanillicon.com%2Fa2a3b35697d7565825134b27a08adecf_200.png&rating=g&size=120)
I know this has been asked several times, but I tried all the suggestions in those posts without fixing the issue. Basically, after dragging a row, it snaps back to its original position. Here is the fiddle:
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @yelob ,
It needs a column that defines the sequence number. If it's array based data, it will assume the first column, but cause you're using objects, it needs to be told with
rowReorder.dataSrc
, as in this example here.Cheers,
Colin
Wow, such an easy fix on the fiddle, thank you. However, when I apply this to my actual project, I can see the sequence number change, but the row still ends up back where it started. Any idea what might cause that behavior?
Nevermind, I figured it out. I was using the attribute
data-sort="false"
, and that was somehow screwing things up. Thanks again, @colin!