It allows you to "grab" an object using the mouse and drag it to a different location. Drag and Drop can be done on browser-based application (web) or on native GUI applications like android or desktop
Questions tagged [drag-and-drop]
13309 questions
54
votes
13 answers
How to automate drag & drop functionality using Selenium WebDriver Java
How to automate drag & drop functionality using Selenium WebDriver in java?

user1891145
- 687
- 1
- 5
- 12
53
votes
2 answers
Pass object through dataTransfer
I'm trying to figure out a way to pass a native object through javascript's event.dataTransfer for drag and drop. I'm writing the front end editor portion of a CMS, and want users to be able to drag and drop elements (of many different types,…

Kabir Sarin
- 18,092
- 10
- 50
- 41
52
votes
4 answers
How do I detect a file is being dragged rather than a draggable element on my page?
I'm using the html5 events to enable both file and element drag-and-drop. I've attached the dragover event to the body and am using event delegations to show where a draggable can be dropped. My question is how can I tell if a file is being dragged…

aepheus
- 7,827
- 7
- 36
- 51
51
votes
5 answers
How to make resizeable?
Is there a way to make a container resizeable with drag & drop?
Chris
- 9,209
- 16
- 58
- 74
Is there a way to make a
container resizeable with drag & drop?

Chris
- 9,209
- 16
- 58
- 74
50
votes
4 answers
Drag and drop items in RecyclerView with GridLayoutManager
What I want to achieve:
Have a RecyclerView with GridLayoutManager that supports drag'n'drop and that rearranges the items while dragging.
Side note: First time developing anything with drag and drop.
There are a lot of topics on how to achieve this…

patrick.elmquist
- 2,113
- 2
- 21
- 35
50
votes
3 answers
jQuery.on("drop") not firing
I'm trying to implement drag and dropping of files from the desktop the browser window. I have used jQuery to attach three events to the HTML element as in the code below:
$("html").on("dragover", function() {
…

TreacleWench
- 503
- 1
- 4
- 5
49
votes
4 answers
HTML5 Drag and Drop anywhere on the screen
I have a debugger log that I've written in JavaScript for a project I'm working on. The log is basically an

clicheName
- 889
- 2
- 11
- 16
48
votes
5 answers
How can I use Drag-and-Drop in Swing to get file path?
I have a JTextField in my Swing application that holds the file path of a file selected to be used. Currently I have a JFileChooser that is used to populate this value. However, I would like to add the ability for a user to drag-and-drop a file onto…

Ascalonian
- 14,409
- 18
- 71
- 103
48
votes
4 answers
HTML5, JavaScript: Drag and Drop File from External Window (Windows Explorer)
Can I kindly ask for a good working example of HTML5 File Drag and Drop implementation? The source code should work if drag and drop is performed from external application(Windows Explorer) to browser window. It should work on as many browsers as…

Bunkai.Satori
- 4,698
- 13
- 49
- 77
47
votes
1 answer
Tutorial on How to drag and drop item from UITableView to UITableView
I've been banging my head on this one for a while and I figured it out. I want to give back to the community since I've gotten a lot of help from this website :).
I'm trying to copy an item from one UITableView to another UITableView and information…

mj_
- 6,297
- 7
- 40
- 80
47
votes
6 answers
C# Drag drop does not work on windows 7
I have had a project for quite a while using C# winforms. I implemented a drag-drop function before windows 7 was released. Worked like a charm. However, when using windows 7 it does not work. The event doesn't even get triggered.
AllowDrop is set…

Oskar Kjellin
- 21,280
- 10
- 54
- 93
45
votes
4 answers
jquery ui get id of droppable element, when dropped an item
How we get the id of droppable element, when dropped an item? Here i use jquery ui and asp.net mvc.
Backlog | Ready |
![]()
user685254
45
votes
4 answers
android - how to catch Drop action of ItemTouchHelper which is used with RecyclerViewI have a problem with ItemTouchHelper of RecyclerView.
I am making a game. The game board is actually a RecyclerView. RecyclerView has GridLayoutManager with some span count. I want to implement drag & drop recyclerview's items. Any item can…
![]()
okarakose
45
votes
1 answer
HTML5 Drag and Drop effectAllowed and dropEffectThe relationship between these two properties seems to have been the source of some confusion. Based on reading both the MDN site and MSDN I thought i had figured it out, but now I am not sure...
I figured that when an element is dragged, you can…
![]()
Woody
45
votes
5 answers
Twitter Bootstrap Modal Form: How to drag and drop?I would like to be able to move around (on the greyed-out background, by dragging and dropping) the modal form that is provided by Bootstrap 2. Can anyone tell me what the best practice for achieving this is?
![]()
AndraD
|