Disable Sorting for Certain Columns
Disable Sorting for Certain Columns
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!
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!
This discussion has been closed.
Replies
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
Thank you very much! Why did I never see the usage section?
That's very cool! ;)