Row reordering not working

Row reordering not working

yelobyelob Posts: 5Questions: 2Answers: 0

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:

http://jsfiddle.net/h4wrmfx3/764/

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,236Questions: 1Answers: 2,598
    Answer ✓

    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

  • yelobyelob Posts: 5Questions: 2Answers: 0

    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?

  • yelobyelob Posts: 5Questions: 2Answers: 0
    edited September 2018

    Nevermind, I figured it out. I was using the attribute data-sort="false", and that was somehow screwing things up. Thanks again, @colin!

This discussion has been closed.