Why does disabling paging, searching, or ordering kill rowReorder's ability to recall row sequence?

Why does disabling paging, searching, or ordering kill rowReorder's ability to recall row sequence?

ttwirettwire Posts: 2Questions: 0Answers: 0
edited April 2016 in Free community support

Ive just started using DataTables with my most recent project and love it. I'm having a problem with the rowreorder extension. It doesn't seem to remember the sequence of the reordered rows after i drag and drop when one or all of the three mentioned options are turned off (paging, ordering, searching) . It sort-of works fine in plain vanella but I need to make a few modifications to the code.

can anyone help?

link: http://vg.ttwiredev.com/test_env/rowReorder.html
...
paging: false,
"ordering": false,
"searching": false,
...
rowreorder still fires off

Replies

  • ttwirettwire Posts: 2Questions: 0Answers: 0

    any thoughts?

  • allanallan Posts: 61,859Questions: 1Answers: 10,135 Site admin

    Paging and search should have no effect on RowReorder. Ordering however will. RowReorder is not just a DOM reordering component (in fact it isn't that at all) but rather it will change the data in the table. The ordering applied to the table is what gives the table its order (hence why RowReorder needs a sequential column to operate correctly).

    Fundamentally RowReorder requires ordering to be enabled.

    Allan

This discussion has been closed.