I am trying to update the tablesorter pager whenever I dynamically add or delete a row from the table. So far I'm using tips from this post, http://www.nabble.com/Add-row-and-refresh-tablesorter-with-pager.-td13236775s27240.html#a13236775
I am able to update the table and re-sort when a new row is added, but whenever I delete a row, it sorts, but it fails to show the correct # of rows. For example, if I have 16 rows, with a pager showing 15 per page, and I delete a row dynamically, then my page will show 14 rows on page 1, and 1 row on page 2. I'm caling this after add/delete: $("#myTable").trigger("update"); $("#myTable").trigger("appendCache"); $("#myTable.tablesorter").get(0).config.sortList; $("#myTable").trigger("sorton", [config.sortList]); which updates the tablesorter, and works perfectly with the pager on add. If I include the calls to the pager, before and after update like the post above says, adding will also fail. -- View this message in context: http://www.nabble.com/Tablesorter-pager-refresh-pager-tp19748007s27240p19748007.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.