-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Advanced drag and drop behaviors: Row reordering in Row Grouping and Tree Data #4821
Comments
glad this was brought up as we are definitely waiting on this feature for we need it for our tree data. |
Was looking for this feature today for our product. Using MUI Pro license. Eagerly awaiting its release. Thanks |
@tvvignesh what would be the wanted behavior for you ? Do you want to be able to move a row inside it's parent ? |
In my team we had the same situation as @tvvignesh, we ended up adding
Looking forward to this release too. Thanks in advance. |
@flaviendelangle We were trying to use the tree hierarchy in the MUI data grid. While the tree worked well, this is what we wanted to do:
We are trying to build chatbot dialog flows using the data grid for our product which is why we are looking for this. Thanks in advance. |
Maybe it's time to prioritize this one. It will most likely be only available for v6 because it will utilize the new row structure but maybe there is a way to also have it in v5 with minimal effort. It's probably worth investigating a bit to know what is possible. |
Any updates on this? |
It would be awesome if you create and share a code sandbox with your solution ✨ |
Hey guys. Would be pretty awesome to get this done ASAP as we moved our lists to your lib but as we're using tree-data this is an essential feature. Any timeline on that? |
We are also dependent on this feature, which is quite essential for us. |
This will be a most welcome feature! |
We are also depend on this feature to be released. |
Also depend on this feature quite heavily |
When is this expected to be ready? We depend on this feature also heavily |
we also depend on this feature, hope to see it soon |
When can we expect this feature for row reordering in mui data grid. |
hi @DanailH , is it possible to achieve below use case in Tree Data Grid.
|
@Ut1998 you can check here for more details https://mui.com/x/react-data-grid/editing/#full-featured-crud-component but the short answer is - yes. To create a child row you need to set the appropriate model and provide the path to that child row. |
hi @joserodolfofreitas, is there a feature in MUI tree data grid, in which if we search the row based on any column value, and the searched result is in the nth child of the row, then it should expand that row. |
Thanks for the feedback and willing to contribute, @Ut1998!
This is a bit off-topic, so you may need to open a specific issue to discuss this. The short answer is no. There's no out-of-the-box that offers this, but you can achieve this behavior by using the gridSelectors to get filtered rows' ids and the |
Are there any updates on this feature? We would need both functionalities
Is there an ETA for the feature? Do you maybe need help with the implementation? Thanks :) |
Hi all
Yes – same request from our side.
If you need additional resources please let us know.
Andrea
Von: vicinik ***@***.***>
Datum: Freitag, 23. Juni 2023 um 10:22
An: mui/mui-x ***@***.***>
Cc: Andrea Salce ***@***.***>, Comment ***@***.***>
Betreff: Re: [mui/mui-x] [data grid] Advanced drag and drop behaviors: Row reordering in Row Grouping and Tree Data (Issue #4821)
Are there any updates on this feature? We would need both functionalities
* Row reordering inside a group
* Row movement between groups with inherent parent updates
Is there an ETA for the feature? Do you maybe need help with the implementation?
Thanks :)
—
Reply to this email directly, view it on GitHub<#4821 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKMD664OV5J7MZBKFD7WDP3XMVG5JANCNFSM5VQ6CNIQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Also, having column reordering on row grouping would be nice as well! |
We also need row reordering inside a group (i.e. parent-child relationship) as well as between groups. When will this feature be released? |
Row reordering inside a group |
We are also depend on this feature to be released. |
Need this feature. |
Any update on this feature? If it's hard to handle all advanced scenarios, maybe just focus on the simple ones first. Either way, my company would love to have this feature! |
After many months without update on this it would be great to get some kind of feedback from the dev-team. For the community is some kind of blind flight. |
We are also depend on this feature to be released. |
+1 |
Need these features too! |
we also need these features - from Premium Customer |
@DanailH An update on these features is overdue, please provide some status update. (Premium) |
@DanailH @joserodolfofreitas @flaviendelangle @cherniavskii |
@6r3al, there is no ETA at this time, but from all the different features covered in this issue, reordering within row grouping is the highest priority. We may be able to tackle it soon. (It's worth mentioning that it's going to follow it's "parent" feature and be under the Premium plan) |
Hi @joserodolfofreitas, thanks for getting back to me. You mentioned your team should be able to tackle it soon. Any insight of how soon is "soon" 😃? |
Hello @joserodolfofreitas , still no news ? |
Hi all. I didn't see any official annoucement but I saw this: https://mui.com/x/react-tree-view/rich-tree-view/ordering/ |
I would love to see both tree data + row reordering implemented soon! For now I'll be working on a work-around, but would love an update on the timeline for these features at some point. |
Hello I would very much appreciate if you could implement this: Parent / children selection relationship |
i would love to see this Parent / children selection relationship implementation soon |
Me too! (Pro Customer) |
Summary 💡
Follow up to #206
Currently, when Row Grouping or Tree Data is used, the row reordering feature is disabled. This was intentionally made so in order to ship the feature quicker. Also, at the time, there were a few unanswered questions regarding how the reordering will work when you try to move a child row out of the parent as well as moving a parent to become a child of another parent.
This issue is to track the demand for a feature like that and ultimately start working on the implementation.
Last but not least, it has to be decided if a feature add-on like this should be part of the Pro or the Premium plan
Advanced Drag and Drop Behaviors
"Row Reordering" doesn't properly include all the behaviors expected from dragging and dropping rows. It is one of the possible outcomes of dragging a row to drop it into a different position.
When a row is dragged to a different position, users expect:
Plain data
The internal order of the rows is updated, with the possibility to make the order persistent through the callback
onRowOrderChange
Support multiple rows reordering via row selection
Tree data
[data grid] Change a row's hierarchy in Tree Data by dragging a leaf to a different parent node #7774
The
treeDataPath
value needs to be updated; followinggetTreeDataPath
, we need asetTreeDataPath
that receives the row and the new path array, based on where the row was dropped.Because getTreeDataPath is optional, and by default, we use the
path
field, we may additionally need an optional callbackonTreeDataPathUpdate
.[data grid] Tree data: Change a row's displayed order inside its parent group. #8352
The internal order of the rows in a given group is updated, with the possibility to make the order persistent through the callback
onRowOrderChange
. In this case,oldIndex
andtargetIndex
are based only on the indexes inside the given group.Both behaviors in Tree Data should work combined or independently
Row Grouping
[data grid] Change a row's group in Row Grouping with drag and drop #7775
The field value referenced by the grouped column needs to be updated; The new value is based on the sibling's rows where the row was dropped. We may need
onRowGroupChange
to pass this new value and the row that is getting updated.[data grid] Row grouping: Change a row's displayed order inside its parent group. #8353
The internal order of the rows in a given group is updated, with the possibility to make the order persistent through the callback
onRowOrderChange
. In this case,oldIndex
andtargetIndex
are based only on the indexes inside the given group.[data grid] Grouping using drag and drop #5235
Group rows on the fly by dragging rows into others
Both behaviors of Row Grouping should work combined or independently
The text was updated successfully, but these errors were encountered: