ColReorder original column order

ColReorder original column order

domus71domus71 Posts: 5Questions: 0Answers: 0
edited March 2014 in Plug-ins
Is there a way to know the orginal column order?

In ajax calls, the sorting is based in new column order, so I need to know the orginal column order to do the right sorting.

Domus71

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    The thing to do is use the `mDataProp_{i}` option that is sent and do a reverse map. There is an example here: http://datatables.net/release-datatables/extras/ColReorder/server_side.html and the PHP for it included in the DataTables download (assuming you are using 1.9 - 1.10 has a similar example).

    Allan
  • domus71domus71 Posts: 5Questions: 0Answers: 0
    Great! Thanks
This discussion has been closed.