Redraw table after removed rows

Redraw table after removed rows

dtopalogloudtopaloglou Posts: 1Questions: 1Answers: 0

I'm having some issue redrawing my table after an ajax request. The way I delete rows on the table is by having the user click on the checkbox of that row and have a separate delete button on the page that serializes the checkboxes and sends it over to the server for deletion. Upon deletion, I need to remove that row and redraw that table. Normally, I'd do

table.row($(':checkbox:checked').parents('tr')).remove().draw();

But now I'm using .dataTable and .makeEditable and the method I used to use no longer works, I've also tried table.fnDraw() but nothing happens. What I'm left with now is:
$(':checkbox:checked').parents('tr').remove(); to delete the rows, but need to figure a way to redraw the table in order to get the pagination right again.

This discussion has been closed.