Search code examples
jqueryajaxtablesorter

Jquery Tablesorter lost StickyHeaders widget


Following this question I have similar problem. I have a table with a stickyHeaders widget (it allows to fix the table headers while scrolling). Also I have a checkboxes in some of table cells. On $('checkbox').change(function(){}); I send some data to request.php and reload my table by $('#tableid').append(data); The problem is that my headers hide when I click on any checkbox and then appear again if I scroll mouse wheel or resize the table (so do some 'refresh').

I tried:

$('#sortTable').trigger('update', [true]);
$('#sortTable').trigger('refreshWidgets', true, false);

No result. How can I fix this?

It is good Where is my StickyHeaders??


Solution

  • So solved it like this

    $('#sortTable').resize();