rowReorder without ordering

rowReorder without ordering

goli510goli510 Posts: 1Questions: 1Answers: 0

I wont use datatable with rowreorder drag & drop but disable order colum (with click in header table)
$(document).ready(function() {
$('#example').DataTable( {
rowReorder: true,
"ordering": false
} );
} );

but not run... What should I do to make it work ?
Thks !

Answers

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75
    edited November 2015

    Thats in the examples for the rowreorder extension, here

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    Correct - ordering in a DataTable is fundamentally based on the data order, not the DOM order. You must keep ordering enabled to use RowReorder - but you can hide the column and disable reordering on other columns as you need.

    Allan

This discussion has been closed.