FluentDataGrid - Fixed Column & Header #3104
-
Hi everyone: Since there are many columns, I want to fix the first and last columns, similar to the functionality in Element UI's Table with Fixed Column. How can I achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
We currently have no way to do that |
Beta Was this translation helpful? Give feedback.
-
For a pure CSS solution you could try something like this although this is as far as I went with testing and it's possible that a future release of the The Make sure the
|
Beta Was this translation helpful? Give feedback.
For a pure CSS solution you could try something like this although this is as far as I went with testing and it's possible that a future release of the
FluentDataGrid
may break these css styles.The
th { display: table-cell!important; }
is required for now to prevent the header text from shrinking but a fix was added in #3156 so that style override won't be needed for long.Make sure the
z-index
of the fixed columns is at least 3 since the currentz-index
of column headers is 2.