Checkbox in a header
Checkbox in a header
simplynice
Posts: 2Questions: 1Answers: 0
Image: http://imgur.com/qZ3gvdF
Above is an image with two red and green circle.
red circle, clicking that allows me to select all the rows.
but here's the problem, clicking the red circle ( input checkbox ) also triggers the green circle which is the asc/desc order.
I've tried to stop the propagation and other alternatives.
can you suggest me on how can i achieve this? to not trigger the parent or the green circle.
Thanks in advance!
- simplynice
This discussion has been closed.
Answers
Honestly, I would solve this by using https://datatables.net/extensions/buttons/custom and creating my own "Select All" and "Deselect All" buttons.
Is there any alternative? by not doing the custom buttons? and stay with the checkbox?
The only other thing I could recommend is checking out https://github.com/vedmack/yadcf . It may have something you could use, although I have never used it for checkboxes.