DataTables with ColReorder - data are not ordered by the right column

DataTables with ColReorder - data are not ordered by the right column

hubohubo Posts: 45Questions: 14Answers: 0

Previous bug report has been closed and still not solved.
Reference to previous bug report: http://www.datatables.net/forums/discussion/24899/datatables-with-colreorder-data-are-not-ordered-by-the-right-column

DataTables 1.10.8 and ColReorder 1.2.0 still have this bug.

After more than a year still on to do list? ColReorder is useless, when a simple use case will break it's functionality.

This question has an accepted answers - jump to answer

Answers

  • hubohubo Posts: 45Questions: 14Answers: 0
    edited August 2015

    It's not working even in your own example: http://www.datatables.net/extensions/colreorder/examples/styling/jqueryui.html

    1. Change the order of the columns.
    2. Order by the column which is now on different position (has different index).

    Now it will show the order symbol on wrong column. In case there is data-order used, it can crash (tn4).

    FYI everytime you reorder the columns it will throw:
    Object doesn't support property or method 'getAttribute'

  • hubohubo Posts: 45Questions: 14Answers: 0

    In DataTables 1.10.9 with ColReorder 1.2.0 and JQueryUI it is now working properly until one of the columns contains data-order.

  • hubohubo Posts: 45Questions: 14Answers: 0

    It's fixed now in DataTables 1.10.11 with ColReorder 1.3.1. Thanks!

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Sorry I failed to reply here. But good to hear it is working for you now.

    Allan

This discussion has been closed.