drag-and-drop

How can I get jQuery UI's Draggable and Sortable functions to work on the iPhone?

I have a page that uses JQuery UI; in particular the Sortable interaction. The page works fine for desktop web browsers with mice, however I can't get the drag-drop functionality to work on Mobile Safari on the iPhone. Any dragging action simply scrolls the page. The functionality on my page is extremely similar to the Sortable Empty-...

Cocoa NSOutlineView and Drag-and-Drop

I recently started another thread without an account, so I'm reposting the question here with an account so I can edit current links to the program so other users can follow this. I have also updated the code below. Here is my original question: I read the other post here on Outlineviews and DND, but I can't get my program to work. At...

PyQt Drag and Drop - Nothing happens

Hi, I'm trying to get drop a file onto a Window (I've tried the same thing with a QListWidget without success there too) test.py: #! /usr/bin/python # Test from PyQt4 import QtCore, QtGui import sys from qt_test import Ui_MainWindow class MyForm(QtGui.QMainWindow, Ui_MainWindow): def __init__(self, parent=None): QtGui.QWi...

How to trigger binding source update from code in WPF?

In My ViewModel class I have a property: class ViewModel : INotifyPropertyChanged { public string FileName {get;set;} } and in my View I bind a label's content to ViewModel's FileName. now When I do drag-drop a file to my View, How can I update the label's Content property, so that the ViewMode's FileName also get updated via binding...

C# - Drag item out of listview into a trash can?

How do I drag a item out of a Winforms-listview control onto another control (picture of trash can)? UPDATE1: I think the basic flow is: for the ItemDrag event on the listview have a DoDragDrop Then have a DragEnter event on the picturebox that captures that drag? UPDATE2: The basic flow (based on answers): add 'ItemDrag' event ...

DataGridView Column drag and drop with Auto-horizontal scroll

Can anyone please suggest how should I implement column drag and drop (with auto scroll) feature in DataGridView. I know I can use the controll's AllowUserToDragDrop option. However, since my datagridview control has relatively large number of columns, I need an auto scroll feature which follows the current drag-drop position so that use...

How can I allow Drag and Drop from Windows Explorer into a C# WPF application?

I know there have been tons of answers on this subject, but I still cannot get it to work at all. I've enabled AllowDrop on every control at every level of the application, and tried to catch DragEnter and Drop on every control to no avail. I can drag and drop items inside the application, but any time I try to bring something in from ...

Creating an Drop Pin MKPinAnnotation supporting dragging like the Drop Pin in Maps App.

Hi! I wonder if it's possible to create an MKPinAnnotation in a Custom MKMapView, which answers to touch and drag just like the "Drop Pin" annotation in the Maps App. I would like a way to drop a pin at a location given by the GPS. Then let the user fine tune the exact location by touching the Pin and dragging it right, if the GPS is a...

Object drag delay issue

I have this code that drags stuff around perfectly in IE - however in firefox the onmousedown-drag of the object does not immediately drag but shows the no-entry cursor and then after onmouseup the object drags around freely. The object does stop draging on the next onmouseup. The object should only drag in the onmousdown state, while th...

Drag rows out of a multiselect DataGridView

I'm having a problem dragging rows out of a datagridview. The grid has the property multiselect = true and every time I select the rows I want to drag out and then left click on the grid again, the selected rows disappear. Anyone got a solution / a working example? Thx. ...

How do you implement file drag-and-drop upload in Google Chrome?

I've found several tutorials online about implementing file drag/drop with Firefox 3.6 (they involve using a FileReader object to get the file binary data). However, I cannot create a FileReader object in Chrome on Windows or Mac. Does anyone know what the API is to read and manipulate data from a drag-and-dropped file in Chrome? If I...

Table Column Resizing/Drag 'n' Dropping in jQuery

I'm looking for a way to implement both resizing and drag 'n' drop for columns (not rows) within a predefined table using jQuery. I've done a bit of Googling and haven't really found anything that fits the bill as many require you to essentially reconstruct your table using jQuery. I simply want to plug this functionality in, not have my...

How to use drag-drop on windows seven or vista?

I've an app wich alows the user to drag drop images into a picturebox. It works on xp, it doesn't works on vista and seven since the UAC could cause the problem. I've tried running it as administrator and still it doesn't work. ...

jsTree - disable drag option

Hello, how can I disable draggable option in jsTree? I want to disable moving nodes. How can I achieve this? ...

How to automate vertical scrolling in Flex AdvancedDataGrid when dragging item below bottom of visible rows?

I have an AdvancedDataGrid with XML dataProvider. Drag and drop in enabled, and works within the visible rows of the ADG. HOWEVER, if I attempt to drag an item past the bottom-most visible row of the ADG, the ADG does NOT scroll to display the next rows, which makes it impossible to drag and drop beyond the immediately visible rows. Alt...

Python - drag file into .exe to run script

Hi, I have a Python script that takes the directory path of a text file and converts it into an excel file. Currently I have it running as a console application (compiled with py2exe) and prompts the user for the directory path through raw_input(). How do i make it such that I can drag & drop my text file directly into the .exe of the...

Drag and Drop to explorer causing invalid FORMATETC (DV_E_FORMATETC) error

I'm trying to use this excellent example to implement dropping virtual files into Windows Explorer. However, I'm stymied by this error. Towards the bottom, inside void System.Runtime.InteropServices.ComTypes.IDataObject.GetData(ref System.Runtime.InteropServices.ComTypes.FORMATETC formatetc, out System.Runtime.InteropServices.ComTypes.ST...

Visual Studio 2010 introduces "No drag and drop customization of menus and toolbars"

What went wrong with the Microsoft Visual Studio team, for them to remove the drag-and-drop functionality of menu and toolbar customizations? You now are greeted with a friendly looking dialog box that lets you "Add" and "Remove" items using listboxes and other primitive means of customization. How do I quickly customize items here? Or ...

JavaScript Drag and Drop Grid With Elements of Different Sizes.

I need to be able to drag and drop boxes of differing dimensions on the same grid. JQuery UI seems to offer 80% of what I'm after particularly the sortable grid the have on their demo page. The only problem is that this grid only works with boxes of identical dimensions. My requirement is to be able to have the same functionality but ...

JQUERY, highlight text, and drag & drop it in a DIV which captures it

I'd like a user to be able to highlight a select of text and be able to drag and drop the text selection into a DIV. The DIV would be binded to be able to capture the text that was dropped. Any ideas on how to make this happen? Thanks ...