How to fixed first row at the top of table
How to fixed first row at the top of table
I try to set up a datable table and I would like the first line (average_sla) to be fixed in premanence, even in case of sorting.
I succeeded in the plug-in absolut .js, to fix the whole line when I sort the column where is "Average_SLA". But when I sort the other columns the row is no longer fixed.
Here is my code: https://jsfiddle.net/jpsdj01/h7w26k0z/
According to this example (http://live.datattes.net/jotifoxa/1/edit), it is possible to do what I want but on my project, I cannot do it.
Can you help me?
This question has an accepted answers - jump to answer
Answers
Looks like you tried
orderFixed
but that doesn't seem to work well with your data. For the absolute ordering plugin to work that column must be sorted. Would it be possible for you to place that row as a 2nd header row instead of a table row?Kevin
Thank you Kevin, I hadn't thought of doing this, but it works great.