Disable ordering when click on an icon in DataTable header

Disable ordering when click on an icon in DataTable header

FlorianeFloriane Posts: 22Questions: 6Answers: 0

Hi,

I want to integrate filters on headers of a DataTable. I have add an image in every "th" tag and I send an alert on click.
My problem is that when I click on my icon, the click event for filter is well send but the event for sort is send too... And I don't want this.

Here is my test case :
<a class="jsbin-embed" href="http://live.datatables.net/wujituf/5/embed">DataTables - JS Bin</a>

Have you an idea, how can I disable sort when I click on filter icon ?

Thank you.

Answers

This discussion has been closed.