reactjs drag and drop between grids not working - reactjs

I am trying to create a feature of drag and drop rows between two grids in Reactjs. I tried using several libraries(like ag-grid, react-beautiful-dnd, Kendo UI etc.) but none of them are serving my purpose. Either the library does not support drag and drop between different elements or the feature is not supported in IE11. Can anyone suggest any solution to this.
Thank you.

Related

How to implement auto scrolling when dragging items between columns for multiple containers in react-beautiful-dnd

I am building something like trello board that has dnd feature between columns and items inside the column. I want to build auto-scrolling when dragging the item to the end of parent container.
But I am getting warning whenever dragging items
It seems like react-beautiful-dnd doesn't support multi scroll container like trello.
Don't we have solution for this? or do we need to implement it by controlling the scrollbar manually?
You can check the issue correctly from below video.
https://www.screencast.com/t/0MLoafdls
Thanks in advance
After struggling in order to resolve this issue, I turned out to use another dnd library - https://dndkit.com/, it resolved all the issues that I had in react-beautiful-dnd

Draggable card that snaps to grid in React

React newbie here.
I am looking for a way to add drag and drop functionality to my website. The goal is to move cards in a grid (I am currently using tailwind css to handle the grid). I found a few libraries that enable drag and drop but none that would:
work in a grid, i.e. in 2D
snap the cards to the grid
reorganize the cards when one is moved (to prevent overlapping)
I tried using react-beautiful-dnd but it seems to only be suitable for lists (i.e. 1D). I also tried react-dnd but I couldn't make it work either, I don't think it is meant to be used in a grid.
I found some libraries that do exactly what I want in angular (https://stackblitz.com/edit/angular-dragdrop-grid) and in vue (https://codesandbox.io/s/j4vn761455), but I can't seem to find react equivalents.
Would you know a react library I could use?
Thanks

How to make your material-ui grid into drag and drop elements

To give you the context, I built a dashboard with a material-ui grid with 3 different sizes of widgets (small, medium and large).
The widgets are not drag and drop and to move the widgets you have to go to another page of the application which is not very UX design. I've never dragged and dropped with react and I'm wondering if there is an easy way to make my material-ui drag and drop grid. I would like to have some suggestions, examples if you have thank you in advance for your help.
For information I saw that there were several libraries (react-beautiful-dnd, dnd-kit)
Here is what I have tried with dnd-kit but I cannot make my grid easily drag and drop :
https://codesandbox.io/s/dndkit-material-ui-grid-sample-ck6l3?file=/src/App.js

How to drag and drop items between 2 columns using react-beautiful-dnd and material ui

Still new coding.
I want to drag and drop things between 2 columns(From Morning to Night, vice-versa) using React JS, Material UI, and react-beautiful-dnd.
I manage to drag and drop things but on their own column only, I can't seem to make it work. How can I achieve this?
Here is the code: https://codesandbox.io/s/react-3s67c
Thanks!
You need to follow the documentation, Material-UI is not a problem to do that.
You need to follow the lesson from the library: https://egghead.io/lessons/react-conditionally-allow-movement-using-react-beautiful-dnd-draggable-and-droppable-props
I'll not do your jobs, but juste follow the doc and the exemples.
https://react-beautiful-dnd.netlify.app/?path=/story/board--simple

How to Drag/Drop Material-UI Cards

Is it possible to drag/drop and change the sorting of the Material UI Cards? If so, how?
https://material-ui.com/components/cards/
Is it possible to drag/drop and change the sorting of the Material UI Cards/
Yes.
how?
You can use react-dnd or react-beautiful-dnd.
They have alot of examples on how to do it and you can check it here for react-dnd.
Here is a working example of how to do it and, which is based on react-dnd examples.
And this is what react-beautiful-dnd has to say about both options:
There are a lot of libraries out there that allow for drag and drop
interactions within React. Most notable of these is the amazing
react-dnd. It does an incredible job at providing a great set of drag
and drop primitives which work especially well with the wildly
inconsistent html5 drag and drop feature. react-beautiful-dnd is a
higher level abstraction specifically built for lists (vertical,
horizontal, movement between lists, nested lists and so on). Within
that subset of functionality react-beautiful-dnd offers a powerful,
natural and beautiful drag and drop experience. However, it does not
provide the breadth of functionality offered by react-dnd. So
react-beautiful-dnd might not be for you depending on what your use
case is.

Resources