Pin rows to the top of the table

Pin rows to the top of the table

ibokatibokat Posts: 2Questions: 2Answers: 0


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?


This question has an accepted answers - jump to answer


  • allanallan Posts: 60,903Questions: 1Answers: 9,927 Site admin
    Answer ✓

    Use orderFixed to "prepend" to the ordering columns - i.e. sort on your specified column and then to the end user's columns.


Sign In or Register to comment.