toggle buttons / checkbox in each column header

toggle buttons / checkbox in each column header

weltioweltio Posts: 1Questions: 1Answers: 0

how can i put the toggle buttons into each column header. The problem seems to be the click-event on that TH-Cell.
Can I change that somehow?
I want to get s.t. like that:

<th>
<span>Title<span>
<buttton>toggle</button>
</th>

Only a click on the span shall trigger sorting and the button click shall trigger the toggle event

Similiar problem: checkbox next to the column title:

<th>
<span>Title<span>
<input type="checkbox" onclick="checkall()"/>
</th>

even though checkall is executed, the column gets sorted too.
Disabling the sorting of that column is not a solution.

Is there any way realise that easily?

This discussion has been closed.