Delete without confirmation

Delete without confirmation

TinchioTinchio Posts: 2Questions: 1Answers: 0

Is it possible to have a remove button (extend: "removeSingle") without the delete confirmation dialog?
Here it says it has all the remove functions, but i cannot make it work the "show" property https://editor.datatables.net/reference/button/remove

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586
    Answer ✓

    Hi @Tinchio ,

    You can use the button selectedSingle for that - something like this: http://live.datatables.net/tazolojo/1/edit

    Cheers,

    Colin

  • TinchioTinchio Posts: 2Questions: 1Answers: 0

    Thanks, it's working. Only i have to call remove twice to make it work, i don't know why
    action: function () {
    editor.remove($tabla.row({ selected: true }).index(), false).submit();
    editor.remove($tabla.row({ selected: true }).index(),false).submit();
    }

    But it's working

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Hi @Tinchio ,

    That is odd, that wasn't needed in my example. If that's still needed, we're happy to look if you can modify my test case to demonstrate the problem, or if you could link to your page.

    Cheers,

    Colin

This discussion has been closed.