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?
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
any thoughts?
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