title: jQuery DataTables check Checkboxes on header click
body: <p>I'm having a table in my current project and using DataTables to provide search and sort function on this table.</p>
  
  <p>Now, I am adding checkboxes in front of every row, so one can check a row, to later only process checked rows.</p>
  
  <p>What I would love is to be able to click the header (which is a checkbox as well) and then 1. not having a sort function for that column, as well as checking all checkbox when clicking, and unchecking all, if all are ticked already. </p>
  
  <p>So I could do something like use the jQuery selector <code>:checkbox</code> to find the checkboxes and set the property checked to true, then if clicking again, check every if its checked and if yes uncheck them, if not check all, and so on. </p>
  
  <p>But is there a more elegant, respectively a better way to do this? Also, how can I disable the sort, so its not a asc/desc sort icon showing in that column?</p>