How to keep current page after delete a row data in table under paging model

How to keep current page after delete a row data in table under paging model

tonykaitonykai Posts: 21Questions: 7Answers: 0

Hello ,

I have one problem need your suggestion . for example : when i press fifth page under paging model and delete a row data via dt.row(obj_this.parents('tr') ).remove().draw() in this page ( Client-side processing ) , then table will return first page , i hope still stay current page , so How to keep current page after delete a row data in table under paging model ?

BR
Kai

This question has an accepted answers - jump to answer

Answers

  • bindridbindrid Posts: 730Questions: 0Answers: 119
    edited May 2018 Answer ✓

    there is a plugin that I have used successfully to do that. https://www.datatables.net/plug-ins/api/row().show()

    get the row immediately after the row you are about to delete, then delete, then use this plugin to move back to this page.

  • tonykaitonykai Posts: 21Questions: 7Answers: 0

    Hello Bindrid ,

    Thank you for your help , i will try it .

    BR
    Kai

This discussion has been closed.