Skip to content
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

[data grid] Grouping using drag and drop #5235

Open
Tracked by #4821
marpro200 opened this issue Jun 17, 2022 · 14 comments
Open
Tracked by #4821

[data grid] Grouping using drag and drop #5235

marpro200 opened this issue Jun 17, 2022 · 14 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! design This is about UI or UX design, please involve a designer feature: Row grouping Related to the data grid Row grouping feature linked in docs The issue is linked in the docs, so completely skew the upvotes new feature New feature or request plan: Premium Impact at least one Premium user waiting for 👍 Waiting for upvotes

Comments

@marpro200
Copy link

marpro200 commented Jun 17, 2022

Summary 💡

I have been using the devexpress reactive grid for a while and have now migrated to mui x data grid.

The devexpress reactive data grid has the feature to group rows by dragging the column header to the toolbar.
(example: https://codesandbox.io/s/charming-almeida-jsvlc7?file=/index.js)

Examples 🌈

https://codesandbox.io/s/charming-almeida-jsvlc7?file=/index.js

Motivation 🔦

This feature would make grouping much simpler and much more intuitive. Furthermore it is more accessible than having to access the column's menu.

Order ID 💳 (optional)

No response

@marpro200 marpro200 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 17, 2022
@alexfauquette alexfauquette added plan: Premium Impact at least one Premium user feature: Row grouping Related to the data grid Row grouping feature design: ux component: data grid This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jun 17, 2022
@oliviertassinari oliviertassinari changed the title Grouping by drag and drop [data grid] Grouping using drag and drop Jun 18, 2022
@flaviendelangle
Copy link
Member

I would be in favor of adding a waiting for upvote and a link in the doc
It's a good improvement that we intend to do at some point, but when will depend a lot on the traction of the community compared to other features.

@joserodolfofreitas joserodolfofreitas added the waiting for 👍 Waiting for upvotes label Jun 20, 2022
@oliviertassinari oliviertassinari added the linked in docs The issue is linked in the docs, so completely skew the upvotes label Jun 23, 2022
@DanielLanger
Copy link

Any update on this? Would love to see this prioritized :)

@flaviendelangle
Copy link
Member

Not yet
It's something you should be able to build on your side.
Of course, having a built-in solution is still very interesting, but we tend to prioritize things that users can build at all (for instance column spanning, column grouping or lazy loading with row grouping).

This feature will be added at some point 👍

@MaltesBytes

This comment was marked as off-topic.

@github-project-automation github-project-automation bot moved this to 🆕 Needs refinement in MUI X Data Grid Jan 17, 2023
@cherniavskii cherniavskii moved this from 🆕 Needs refinement to 🔖 Ready in MUI X Data Grid Jan 17, 2023
@Basir-PD

This comment was marked as off-topic.

@mormir2
Copy link

mormir2 commented Jun 26, 2023

Are there any news regarding this feature? Or is there some example or workaround on how this feature could be implemented in the meantime?

@movisis
Copy link

movisis commented Jun 27, 2023

This is a must have!

@gffhammes
Copy link

Are there any news regarding this feature? Or is there some example or workaround on how this feature could be implemented in the meantime?

I'm working on it on my company. My leader already allowed me to share the feature. When I finish it i'll link a sandbox here

@sterlingdcs-damian
Copy link

I'm also trying to migrate off devexpress as MUI is much more performant, but for parity we need this

@oliviertassinari oliviertassinari added the new feature New feature or request label Aug 9, 2023
@oliviertassinari oliviertassinari added design This is about UI or UX design, please involve a designer and removed design: ux labels Aug 18, 2023
@marpro200
Copy link
Author

Are there any news regarding this feature? Or is there some example or workaround on how this feature could be implemented in the meantime?

I'm working on it on my company. My leader already allowed me to share the feature. When I finish it i'll link a sandbox here

Hey did you manage to implement this?

@Preefix
Copy link

Preefix commented Apr 16, 2024

Are there any news regarding this feature? Or is there some example or workaround on how this feature could be implemented in the meantime?

I'm working on it on my company. My leader already allowed me to share the feature. When I finish it i'll link a sandbox here

Any udpates on this?

@gffhammes
Copy link

Are there any news regarding this feature? Or is there some example or workaround on how this feature could be implemented in the meantime?

I'm working on it on my company. My leader already allowed me to share the feature. When I finish it i'll link a sandbox here

Any udpates on this?

I have successfully implement this feature, but I'm not working on that company anymore. So unfortunately I no longer have access to the code.

But I'll describe what I've done:

First I've created a Context around the datagrid and then I've created a drop component above the grid, inside the context.

In the context, I've created a useRef variable called draggedColumn. And on the column header onDrag event I've passed a callback that updates the draggedColumn ref.

At the drop component, I've passed a callback on the onDrop event that verifies if the draggedColumn ref has any value. If true, the function call the DataGridRef grouping method with the column to group.

@moritz-griesser
Copy link

Any udpates on this?

@Drago92
Copy link

Drago92 commented Nov 6, 2024

Our Company is waiting for this feature too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! design This is about UI or UX design, please involve a designer feature: Row grouping Related to the data grid Row grouping feature linked in docs The issue is linked in the docs, so completely skew the upvotes new feature New feature or request plan: Premium Impact at least one Premium user waiting for 👍 Waiting for upvotes
Projects
Status: 🔖 Ready
Development

No branches or pull requests