T
TanStack10mo ago
rare-sapphire

Sticky cells with two axis virtualization

I'm trying to create a grid virtualized in both axis to have the first col / first row to be sticky. I'm having some troubles figuring out how to do this and cant find any example. What am I missing? https://codesandbox.io/p/devbox/white-butterfly-hhx24c
3 Replies
fair-rose
fair-rose10mo ago
Hey, you can find some useful approach in this thread - https://github.com/TanStack/virtual/issues/180#issuecomment-898960114
GitHub
How can I implement pinned table headers? · Issue #180 · TanStack/v...
Similar issue: #115 Thanks to the above issue, it is now possible to pin certain list items in the virtual list which I have successfully tested. However I cannot use position: sticky as far as I c...
rare-sapphire
rare-sapphireOP10mo ago
nice! this looks like exactly what I need, I'll give it a try monday morning. thanks!
fair-rose
fair-rose10mo ago
Hope it helps!

Did you find this page helpful?