I'm using dataTables and in one of the columns I've placed a input:checkbox
so that the user can mark all columns or unmark, remembering that in the columns I have how to do the ordering, and in that column I also have this, since I must have to know which items are already or not marked. So far so good.
What I'm not sure how to do is that when the user clicks checkbox
do not sort, only do this sort when clicking the column itself. Today, when he clicks to check or uncheck it already does the ordering, and that can not happen.
TheexcerptIcreatefromhtmlisasfollows:
<tableid="datatables">
<thead>
<th>
<tr>Tema</tr>
<tr>Monitoramento</tr>
<tr><input type="checkbox"></tr>
</th>
</thead>
<tbody>
<tr>
<td>Alimentos</td>
<td>monitoramento alimentos 2</td>
<td><input type="checkbox"></td>
</tr>
<tr>
<td>Alimentos</td>
<td>monitoramento alimentos 3</td>
<td><input type="checkbox"></td>
</tr>
</tbody>
</table>