Excluding columns from sorting

Excluding columns from sorting

afarberafarber Posts: 53Questions: 0Answers: 0
edited March 2011 in General
Is there please a way to exclude some columns from sorting?

Like I have 5 columns in my script at http://preferans.de/top20.php

Position, Status, Name, City, Money

and I'd like the "Status" and "Money" to be non-sortable (i.e. don't display triangles on them)

Thank you
Alex

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin
    http://datatables.net/usage/columns#bSortable

    Allan
  • afarberafarber Posts: 53Questions: 0Answers: 0
    Thank you, this has worked for me:

    [code]
    "aoColumns": [
    /* pos */ { "bSearchable": false },
    /* image */ { "bSearchable": false, "bSortable": false },
    /* name */ null,
    /* city */ null,
    /* money */ { "bSearchable": false, "bSortable": false }
    ],
    [/code]
This discussion has been closed.