Table header Freezing along with iscroll and jquery tablesorter 2.0

555 Views Asked by At

We have created an application with sorting table using jquery tablesorter 2.0 plugin The application has iscroll also included.

Now we need to freeze the thead and only the tbody should be scrolling .

please help me with some solution

we are using the following code but its not working

$("table").tablesorter({

widthFixed : true,
showProcessing: true,

headerTemplate : '{content} {icon}', 

widgets: [ 'uitheme', 'zebra', 'stickyHeaders', 'filter' ],

widgetOptions: {


  stickyHeaders : 'tablesorter-stickyHeader',

  zebra   : ["ui-widget-content even", "ui-state-default odd"],


  uitheme : 'jui'

}

});

});

1

There are 1 best solutions below

3
On

I'm guessing you are using the original version of tablesorter? There are some other sticky header widgets available, but might I suggest you check out this stickyHeaders widget demo which will only work properly with my fork of tablesorter.