I have a table built dynamically with PHP. The PHP gives each row an on click event that highlights the selected row and display details associated with it in another section of the page.
I wanted this table to be sortable so I started using this:
http://tablesorter.com/docs/
That worked great, it was sortable, selectable, and moderately fast.
I started looking into fixed headers as well and found this:
http://www.tablefixedheader.com/
Sorting and fixed headers. Awesome.
This works in all the ways I want to but it’s unfortunately slow and gets rid of the onClick event I create for each table row.
That’s not acceptable, in fact, it fundamentally breaks my application.
Is there a better plugin, a way to prevent this or an easier solution?
I need a sortable table with a fixed header that allows me to add unique onClick events and IDs to each table row. And I really don’t want to write my own…
DataTables changed my life.
http://datatables.net/index
The fixed header functionality is an “extra”: http://datatables.net/extras/fixedheader/