-
-
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[data grid] Implement Row pinning #1251
Comments
@AllanRaf Thanks for the request. I have updated your issue to reflect a more generic feature that we might want to build: row pinning. For now, a workaround is to render the extra row outside of the viewport and listen to the |
@oliviertassinari Thank you for your reply. I now render this row outside of the DataGrid component. However, is there a simple way to ensure that my extra row and DataGrid's rows have the same styles? I have been trying to override DataGrid styles but can't get the look quite right. |
@AllanRaf You could try to use the |
@oliviertassinari hi is this feature implemented as i have the same issue and target to implement row pinning but could find anyway around |
I had the same issue as @kh-mubashar . It would be a really nice feature to have. |
I used a similar Approach to display a Footer/Summary row at the bottom like the Header row in v4, and it worked fine. But for v5 whit column pinning it seems to be a bit harder to implement. I am not sure if I would call Row pinning and a footer row the same thing, but with a pinned Row it sure would be possible to render something similar to the FluentUI Footer as benchmark https://developer.microsoft.com/en-us/fluentui#/controls/web/detailslist/customfooter https://developer.microsoft.com/en-us/fluentui#/controls/web/scrollablepane If there is an easy solution on how to create a Footer row that works with Column pinning. Please let me know :) For now, I will just let the column pinning feature disabled for my grid |
I'm also waiting on this feature and column group to fully migrate to DataGrid. Most users doesn't need these fancy aggregation functionality that MUI team focusing right now (and they are hard to implement) , but column group and row pin present in every modern table :-) |
Waiting passionately for this feature! |
Impressive, guys. Thanks for this amazing work! Waiting anxiously for this new feature! |
I am facing the same issue, Need row pinning feature to apply summary row as a last row of the DataGridPro which will be excluded from sorting and filtering . Is there any word around for it? |
We are currently focusing on other feature and did not plan to work on this one yet. What you are describing looks a lot like #213. For me the row pinning is only a way to exclude a row from the scroll behavior, like for the column pinning. But if the content of this row should be some total / average / other summary method of the other rows, then it look like aggregation. Right now, you can probably fake some simple aggregation by creating dummy rows and using heavily For row pinning, as it is highly linked to the virtualization, it can't be cleanly achieved on your side. |
I think what most of us want is not row pinning directly. If I understand it correctly whit row pinning rows get pinned and unpinned based of the scroll position. I can see that this is really hard to implement with virtualization. But for the most use Cases I think it would be enough to have an Aggregated/Summary/Footer row outside of the grid virtualization. I solved my Issue with a custom Footer that render some cells with the same Style als Header cells. But unfortunately I had to disable Column pinning for my solution to work correctly. |
@oliviertassinari, could you give more information on how to achieve this? I don't understand how listening to the columnResize event has anything to do with row pinning. I need row pinning quite urgently so further insight very appreciated. |
When this is Implemented it would maybe nice to also have an automatic pining and an unpining for columns. Sorry this is the best Example I could come up with |
also need summary column feature or at least row pinning option. How soon are you going to implement it? |
Hey @kanonirbrest |
Summary 馃挕
Hello,
I am trying to create a table with
<DataGrid>
. It has nice built in sorting functions which I like using. I also add an extra row to the bottom of the table which sums up the total of each column. However, this row containing totals is also sortable. Is there an easy way to stop this row being part of the sort process and keep it at the bottom of the grid?Benchmark
Requests
The text was updated successfully, but these errors were encountered: