Disable responsive call on custom button click

Disable responsive call on custom button click

dpwilliams2dpwilliams2 Posts: 3Questions: 2Answers: 0

I'm using DataTables with the Responsive extension. Right now it's setup in my first column and I get the nice action of showing any hidden columns when I click on the row. My problem is that I have several custom buttons in the first column and when I click on those buttons, it shows and hides the data as well.

What would I need to add to the custom button onclick code to prevent the extra data from showing. But still leave that functionality in place if they click on the row around the buttons or the icon that the Responsive extensions includes before the buttons.

Answers

  • dpwilliams2dpwilliams2 Posts: 3Questions: 2Answers: 0

    So the issues lies in the fact that the <TD> onclick is firing and completely before the <Button> onclick is firing. Otherwise event.stopPropagation() and event.cancelBubble should work.

  • mackmackmackmack Posts: 15Questions: 1Answers: 2

    Do you have any example code for this?

This discussion has been closed.