Disable Sorting for Certain Columns

Disable Sorting for Certain Columns

emkayyemkayy Posts: 2Questions: 0Answers: 0
edited November 2009 in General
Hello!
Is there a way to disable the sorting function for certain columns?
I have a column with checkboxes only and one with some other content
on which sorting just doesn't make sense!

Maybe the API provides a solution for that!? However, I couldn't find
anything. I also wonder why no one had the problem yet in the forum.

Does anyone have a solution for that? Even if it's a "hack" ;)

Any help is very much appreciated!

Thanks!

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi emkayy,

    This is available in the documentation: http://datatables.net/usage/columns#bSortable .

    As a little aside, it is actually possible to sort on checkboxes as well: http://datatables.net/examples/api/dom_sort.html ;-)

    Regards,
    Allan
  • emkayyemkayy Posts: 2Questions: 0Answers: 0
    Hey!
    Thank you very much! Why did I never see the usage section?

    That's very cool! ;)
This discussion has been closed.