-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[DataGridPro] Implement Row pinning #4863
Conversation
These are the results for the performance tests:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
ff42b31
to
20bb8cb
Compare
8e2534e
to
6e551c0
Compare
This comment was marked as outdated.
This comment was marked as outdated.
8ad9d91
to
9d1b57c
Compare
packages/grid/x-data-grid-pro/src/components/DataGridProVirtualScroller.tsx
Outdated
Show resolved
Hide resolved
045d5c4
to
cbbffcc
Compare
18b4ecc
to
21b1968
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, there's few things to consider:
I would rather not include pinned rows in the row count. We can reconsider this once we get some feedback on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the documentation feels a tad too busy now with the multiple callouts.
Perhaps we can spread them along the row pinning documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, great work, @cherniavskii!
Glad to see this live soon.
Just a couple last minor suggestions:
We're missing to add the feature at our features list on overview
No problem in waiting for feedback from the community, since the feature is experimental. About including the pinned rows when pagination is enabled, yeah it would be misleading. But in |
Closes #1251
Preview: https://deploy-preview-4863--material-ui-x.netlify.app/x/react-data-grid/rows/#row-pinning
Row pinning + aggregation: https://deploy-preview-4863--material-ui-x.netlify.app/x/react-data-grid/aggregation-next/
TODO
warn if pinned row id is already present inNo need for it, since I made it work with duplicated rows in bothrows
proprows
andpinnedRows
: mui/mui-x@4083dd4
(#4863)API
option A - current approach
Pros:
rows
prop and provided separately.Cons:
option B
Pros:
Cons:
Layout
Row pinning should work with column pinning, so I've implemented the following layout: