How do I freeze the first column and header row?

Hi. I’m hoping that I can get some help for my application. @Joyce
I have 2 main questions.

  1. How do I freeze the first column of my table?
  2. How do I freeze the header row without it disappearing halfway through?

Setup

  • Table is created using stack element (I need the ability for users to drag and drop rows so I chose this element)
  • I had to move the header row outside of the stack element to get it to be sticky, but it disappears after vertical scrolling through the entire page
  • For the section, I have a fixed width of 100% and a fixed height of 90vh (I want the scroll bars to show up in the page for users who don’t have a touchpad or mouse with horizontal scroll
  • Table flexbox is set to 100% fixed width with height set to automatic

Attempts
For question 1, I tried to make the first flexbox of the row sticky.
For question 2, I tried adjusting the table height

Any suggestions are greatly appreciated. Thanks.

I think @jptrinh made a video about this, or there is at least an answer from him with a solution.

2 Likes

You can refer yourself to these posts above :slight_smile: Haven’t tried with the stack component but the logic should be close.
Let us know if the solutions worked for you!

1 Like

Thank you. I’ll take a look and try it out.

1 Like