-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pin multiple columns #537
Comments
This is indeed a highly desired feature, that has been required and discussed before, see #229 and #477 or #347.
I think it could be implemented by dynamically computing the size of the pinned columns at render time. mantine-datatable/package/DataTable.tsx Line 149 in f8a4014
And the CSS to render the scroll shadows as needed, which is a bit convoluted and tricky: |
Just to clarify things for anyone bumping into this: it's not trivial but it can be done. You can help speed up the process by:
|
It would be a great feature! |
Describe the solution you'd like
We would love to pin multiple columns (to the left), think of
firstname
andlastname
as two dedicated columns (for sorting) and we would love for both of them to remain sticky on the left (horizontal scrolling).Describe alternatives you've considered
Was thinking of merging the two columns, but that would break sorting. Alternative would be grouping them, but the docs says that does not work either.
Additional context
While looking for other people who might have reported something similar, I stumbled across https://v2.mantine-react-table.com/docs/guides/column-pinning which supports pinning multiple columns - I prefer the styling and UX of this project, so would prefer not migrating - just as inspiration :)
The text was updated successfully, but these errors were encountered: