Pin rows to the top of the table
Pin rows to the top of the table
ibokat
Posts: 5Questions: 4Answers: 0
in DataTables
Hi,
How could I pin rows to the top of a table. I have added a hidden column with int value 1 or 0 and set an columnDef sort on this column. However, this does not work because as soon as the user clicks on the header the sorting order is changed.
I cannot get the rows to stay pinned at the top of the table. Is there a way to do that?
Thanks.
This question has an accepted answers - jump to answer
Answers
Use
orderFixed
to "prepend" to the ordering columns - i.e. sort on your specified column and then to the end user's columns.Allan