drag-and-drop

Drag and drop an image in WPF

I'm trying to drag and drop an image from one spot on the canvas to another (should be relatively simple), but can't figure it out. The image which I want to move has the following XAML: <Image Height="28" HorizontalAlignment="Left" Margin="842,332,0,0" Name="cityImage" Stretch="Fill" VerticalAlignment="Top" Width="42" Source="/Settle...

Looking for a decent implementation of a jquery drag-and-drop tree plugin

I've built a recursive menu using PHP and MySQL and I'm looking for a decent Jquery plugin (or tutorial) - to implement re-ordering the menu based on drag and drop. Does anyone know of any? BTW. I can do the relevant PHP, I just need something that can send drag and drop <li> elements in a nested set of <ul>s and send ajax requests. P....

drop event doesn't fire

I'm working on a calendar. I have multiple droppables besides each other (upside down). On top of those droppables I have two draggable elements which are also resizable. Each droppable is 25px in height and 200px in width. The first draggable is 60px in height (element 1) and the other (element 2) is 20px in height. My problem is when I...

Picking the Order of Images in a Component (Div) (Drag-and-Drop jQuery)

I have a problem. I have a div component where I'll drag multiple images. This part is working perfectly. But I am not able to read the order of these images played in the component. What happens, I can play any position in the image of the div component, however, like to read in order as they are, from left to right. I believe it is po...

What are the best light-weight solutions for Drag and Drop?

I love and use jQuery quite a lot, but I am hoping to find an alternate solution for a special project. I am creating a bookmarklet which will interface with my application to allow users to enter information much quicker. One of the greatest pains in my application at the moment is uploading images. Users (understandly) hate the proces...

Jquery ui - drop is not working all the times

Hi all, I have been facing a problem with the Jquery UI drag and drop. Please find out my sample code at, http://jsbin.com/ojaji4 In above sample, There are two droppables. I have set [tolerance: 'pointer'] for droppables. In the middle, there are draggable elements. Now, start dragging element from the left side BLUE square and try t...

Empty WPF ListBox as Drop Target

I have a ListBox that is a drop target of items from other sources. Everything is working fine except in a particularly situation. When the ListBox has no Items I can only drop in the border of ListBox (I have a trigger so the Border is visible when dragging). To give a bigger drop area I set the MinHeight of the ListBox to 25. When d...

dragging multiple list items simultaneously

I have two lists connected with jQuery UI's sortable, allowing to drag items from one list to another. http://jsbin.com/uraga3 Is there a simple way to drag several items at the same time - e.g. to move items #3, #4 and #7 from left to right? ...

Telerik RadTreeView Drag N Drop Nodes

What's the best way to override the default text and create a "Visual Cue" when Dragging a RadTreeView Node to another. I've started by: telerik:RadTreeView OnClientNodeDragging="ClientNodeDragging" ... ... function ClientNodeDragging(sender, args) { if (!visualClue) { visualClue = create...

Drag (move) a polygon using Google Maps v3

The Google Maps API for a Polygon does not offer a drag method. What would be an efficient way of implementing such a feature (i.e., sufficiently optimised so that it would not kill a four year old laptop)? Thank you! ...

Is this Possible in WPF - 3d drag & drop design tool

Hi All, I am looking for a starting point for the following application. I am looking to create an application that will allow me to import multiple 3d image like furniture. I can then drag and drop these 3d images onto a design window which looks like a room. Once dragged here, i can then position the furniture around a room and rota...

Drag and Drop items from a WPF application onto Desktop

I have a WPF application containing set of UserControls. Requirement is that a user should be able to drag any of these UC's from application and drop it anywhere on screen(outside the main application window). From what I have learnt about D&D functionality in WPF , a drag source and drop target is must. But in the above case the drag ...

Javascript dragging selects text and elements around the drag area

I'm using the following code to allow users to resize a DIV element vertically, but when the click and drag the handle, text and other elements on the page get selected as if the user was just clicking and highlighting everything on the page. Is there a way to prevent this from happening as this looks very bad? This is being used with ...

CellDoubleClick event doesnt work after addition of Drag&Drop

After I added drag & drop to a DataGridView, the CellDoubleClick event stopped working. In the CellMouseDown event I have the following code: private void dataGridView2_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) { var obj = dataGridView2.CurrentRow.DataBoundItem; DoDragDrop(obj, DragDropEffects.Link); } How...

WPF 4 Drag and Drop with visual element as cursor

I have a WPF 4 app which I want to enable drag and drop with, currently I have it working with a basic drag and drop implementation, but I have found that it would be much better if, instead of the mouse cursor changing over to represent the move operation, I could use an image underneath my finger. I cannot seem to find any samples or ...

WPF drag and drop and update the UI at the same time

Im using WPF 4 and trying to get used to the Drag and Drop API with touch, not the mouse, I have easily got a drag operation working that drops onto a Grid, but what I want to do is, when the user is dragging over the grid, change its color. I have got all the code working, and I even put heaps of Console.WriteLine() calls within my Dra...

Qt can i drag and drop from widget to Qwebkit ?

Im developing simple html editor and i like to be able to drap and drop from abutton that for example represent html text line and in the Qwebkit the html text line will be created does Qt support such action ? how should i approach such thing ? ...

How do I remove a file from the FileList

I'm building a drag-and-drop-to-upload web application using HTML5, and I'm dropping the files onto a div and of course fetching the dataTransfer object, which gives me the FileList. Now I want to remove some of the files, but I don't know how, or if it's even possible. Preferably I'd like to just delete them from the FileList; I've g...

How do I detect a HTML5 drag event entering and leaving the window, like Gmail does?

I'd like to be able to highlight the drop area as soon as the cursor carrying a file enters the browser window, exactly the way Gmail does it. But I can't make it work, and I feel like I'm just missing something really obvious. I keep trying to do something like this: this.body = $('body').get(0) this.body.addEventListener("dragenter",...

JavaScript drag-and-drop proxy

I want to enable drag-and-drop behaviour on my Web application. I have an image I want to drag. The image is behind another one that has transparent sections so that you can see the image beneath it. I do not want to change the order of the images. My thinking is I should use another layer on top of both images that is transparent an...