[jQuery] Add row and refresh tablesorter with pager.

[jQuery] Add row and refresh tablesorter with pager.


Hi,
First, thanks for the great jquery API and the tablesorter/pager
plugin. They are really easy to use.
I've had a need recently to dynamically add row and refresh the
table.
For now, I don't really care about refreshing the page at the page
where the new row will be added, I just want the page/row count to be
modified properly and the added row to be properly positionned in the
sorted order.
This is what I'm doing after appending the row:
$("#table_partenaires").trigger("update");
$("#table_partenaires").trigger("appendCache");
$("#table_partenaires.tablesorter").get(0).config.sortList;
$("#table_partenaires").trigger("sorton", [current_sort]);
That works fine if I don't use the pager plugin. But if I add the
tablesorterPager plugin, adding the new row "erases" all the rows from
the other pages.
Is there a way to reset the cache or something?
Thanks