Pin rows to the top of the table

Pin rows to the top of the table

ibokatibokat Posts: 5Questions: 4Answers: 0

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

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 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.

    Allan

Sign In or Register to comment.