set order on orderable: false column

set order on orderable: false column

btreebtree Posts: 99Questions: 14Answers: 11

Hi,

you can set the initial ordering of a datatable on a column which is not orderable by default. This will cause error in combination with server side handling (which caused me some troubles ;)).

Test case without server side, but you can still observe the default ordering:
http://live.datatables.net/viguqoco/1/

Cheers
Hannes

Replies

  • kthorngrenkthorngren Posts: 21,322Questions: 26Answers: 4,948

    The columns.orderable docs state this:

    Using this parameter, you can remove the end user's ability to order upon a column.

    Note that this option only effects the end user's ability to order a column. Developers are still able to order a column using the order option or the order() method if required.

    What you described is expected behavior.

    Kevin

  • btreebtree Posts: 99Questions: 14Answers: 11

    Ahh alright, thanks. Just need to be more careful with non orderable server side columns then.

    Cheers
    Hannes

This discussion has been closed.