drag-and-drop

wx.TreeCtrl drag and drop, copy and move

I'm trying to implement drag and drop on a wx.TreeCtrl and I need to handle both "copy" and "move" operations (if the user keeps CTRL pressed). First of all, I searched the wiki for an example and I'm confused as to which method to use.. Should I use DropSource/DropTarget or just handle EVT_TREE_BEGIN_DRAG and EVT_TREE_END_DRAG? If the l...

How to enable drag-and-drop inside JList

I have a JList and want the user to be able to reorder the elements in the list using drag-n-drop (using my own ListModel and ListCellRenderer, if that makes any difference). Which Objects do I need to create, and how do I process the action? ...

Drag-and-drop event override C# GUI

I have a drag-and-drop event handler registered to a parent form, this.DragDrop += new DragEventHandler(Form_DragDrop); There are several child form that are derived from the parent form. However, when I drag an item inside the forms, the action is only valid if there are no other components in that area. I would like the drag-and-...

Drag Jquery draggable out of it's parent jquery dialog

Hi, I have a jquery dialog that is filled with draggable objects. The droppable target is outside of the dialog. When I initiate a drag, the droppable responds correctly (visual indications that it is a droppable target) and after a drop the correct events trigger so I can correctly handle the drop. The problem is that the dragged ob...

HTML5 drop event child prevented

I using HTML5 D&D. I have one "parent" drop area, e.g. "parent". In that parent I drop my childs, e.g. "child". Each dropped child become also dropped area, e.g. it could accept D&D events. If I dragging something over "parent" area, it highlighted, same for the "child" areas. But I face issue, that "drop" event, fires from "parent" are...

drag and drop from radtreeview into grid

Can anyone suggest most accurate events handlers to be used for the below mentioned description: I have a radtreeview and i will drag radtreeviewitems (nodes in the tree) onto a grid. I want to raise an event when an item is dropped into the grid, then check whether the type of the dropped item is radtreeviewitem. ONLY if it is a radtr...

Example combing jquery drag and drop and tabs

Hi all. I have seen some good examples of how to use jquery to do drag and drop and separately on how to do tabs. Does anyone have or know of an example that combines the two? Basically say you have a div on the left of the screen with draggable objects and then you can drop them into one of the tabs on the right side of the screen. ...

telerik radgridview drop event handler

I have a populated telerikGridView:RadGridView. I am dragging nodes from a Treeview into this radgridview. How to I get (capture) the row & column of the cell where the node is being dragged into? the source is a telerikNavigation:RadTreeViewItem (i would extract the header text of course) and the target is just a telerikGridView:RadG...

TreeviewItem disappears after draggin it onto a grid

I am dragging and dropping a Treeviewitem from a RadTreeview in my WPF/C# project. After a succesful drag and drop the node disappears from the treeview. How can I avoid this? which event handler to change for this? I am assuming that this should be done in teh treeview's drag event handler and nothing to do with the grid's drop event ha...

How to implement a Silverlight Control for time table(scheduler)

Hi All, My company is going to development drag and drop feature in Silverlight. We are very new to Silverlight and just learnt SL for a week ago. But I believe the feature that my company wants can be done in Silverlight. The control about is about the time table in which the resource will be shifted around. Here is the feature detail...

How to restrict drag (disable) in the block?

Hello, How to restrict drag (disable) in the block? Full example <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function(){ var x = 0, setElementMove = 0, getElementMove = $('#drag'); getElementMove.mousedown(...

HTML5 autoscroll using dragNdrop on a scrollable table

I am using the scrollable table in http://www.imaputz.com/cssStuff/bigFourVersion.html. I have added HTML5 drag and drop. Now I am try to autoscroll the table. I have a event listener ondragleave for the tbody. but I do not know the correct event when it drag leaves the tbody. I get many dragleave so it is hard for me to isolate the ti...

Drag UIView between UIViews.

I have a UIView object X that is contained in an UIView object A. I want to be able to touch X and remove it from object A and move it into object B (another UIView). Both Object A & B are inside of the same super UIView. A B _____ _____ | | | | | X | -> | | |___| |___| This is what I have so far. @implementat...

how to drag and drop a div on a website on the iPhone using jquery .

this is my code using jquery-ui , but it can't work on iphone : $("#droppable").droppable({ greedy: true, drop: function(event, ui) { //$(this).find('p').html('Dropped!'); $(this).append($(ui.helper).draggable("disable").addClass('end').find('p')) ...

Dragging from and to NSButton

I am trying to write an app. that will allow the user to drag from an NSButton to another. When dropped I would like the Title to be dropped onto the button. I cannot find a way to make NSButton draggable. Is it possible? ...

Can an input (type=text) be a jQuery droppable?

Hi, I am trying out jQuery-UI drag-drop feature. I was able to easily convert a div into a droppable but making a text box a Droppable doesn't work. jQuery('input[type=text]:visible').droppable({ drop: function (e, ui){ console.log('dropping',ui); //--> this never gets called jQuery(this).val(jQuery(ui.helper).text());...

select tab item on hover while in drag-and-drop operation in SWT

I need to select tab items from a SWT tab folder while in a drag-and-drop operation on hover, just like windows does with task bar buttons. My solution can be platform dependent (Windows). Unfortunately mouse track events do not fire while in DND operations. I decided to implement myself the hover event. I get some mouse events with the...

Adobe AIR and canceling Drag and Drop operations

[[Cross posting from the Adobe AIR forums: (http://forums.adobe.com/thread/707440?tstart=0)]] Hi all, I'm developing an HTML/JavaScript based AIR 2.0.3 desktop application where I want to make use of the File Promises APIs. Here's what my code looks like: var cb = new air.Clipboard(), promises = []; for(var i = 0, l = this._urls.lengt...

How do I drag a web page onto a C# button in my app?

Hello, I know how to do drag and drop in C# when it comes to files. I can take a file off my desktop and drop it on my C# app (onto a button) and that works fine. However, if I have Firefox loaded, and I try to drag the web page link I am viewing and drop it onto my C# app, I am unable to do it (I get a circle with a slash through it)...

What testing tool can I use to test drag'n'drop?

I need to test file upload feature in my web application. User can choose a file in windows explorer, drag it to a container in a browser, and file gets uploaded. I guess i need a simple UI testing tool which allows drag-and-drop between 2 arbitrary windows. What testing tool is the best for that? ...