|
Hi, The current row pinning feature works great if used with a client-side pagination but it seems quite limited when using a server-side pagination. e.g.
Proposal Thanks |
Replies: 1 comment
|
The behavior you observed happens because of two factors:
Here is how to implement cross-page server-side row pinning reliably: Step 1: Supply
|
The behavior you observed happens because of two factors:
getRowId, TanStack Table keys rows by their array index ("0","1","2"). When page 2 loads, index"2"resolves to the 3rd row of page 2 rather than your original row.dataarray. When page 2 loads, the server response omitted page 1's pinned item.Here is how to implement cross-page server-side row pinning reliably:
Step 1: Supply
getRowIdwith a Unique IdentifierTell TanStack Table to track rows by their unique ID (e.g., database primary key) rath…