ColReorder and bSort set to false

ColReorder and bSort set to false

gawpertrongawpertron Posts: 2Questions: 0Answers: 0
edited September 2013 in DataTables 1.9
It seems that setting bSort to false in the config prevents ColReorder from working (or initialising), but I can't see any reference to bSort in ColReorder. Is it possible to use ColReorder but prevent the columns from being sortable at the same time?

Replies

  • gawpertrongawpertron Posts: 2Questions: 0Answers: 0
    edited September 2013
    Bit more info, it seems to stop working if you re-init a table. i.e.

    $(''#table').dataTables({bSort : false, sDom : 'R' // etc...});

    // .. then sometime later reinit with different data/columns
    $(''#table').dataTables().fnDestroy();
    $(''#table').dataTables({bSort : false, sDom : 'R' // etc...});
  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    ColReorder with bSort: false - http://live.datatables.net/eqatod/edit#javascript,html

    Can you link us to a test case which shows the problem please.

    Allan
This discussion has been closed.