drag-and-drop

Flex: AdvancedDataGrid Tree dropParent

Hi I have an AdvancedDataGrid tree with a ArrayCollection as its dataprovider. Now, for instance, i drag a leaf from one node to another node. To catch the event I'm adding a Listener to dragComplete. advancedDG.addEventListener(DragEvent.DRAG_COMPLETE, dRAG_COMPLETE_Handler); public function dRAG_COMPLETE_Handler(event: DragEvent):voi...

How to prevent tree items from being dragged into themselves?

I have a flex tree with dragMoveEnabled = true. I want to find out, when an item is dragged into itself or it's children. I'd like to use DragManager.showFeedback(DragManager.NONE) in the tree's onDragOver handler, but can't find out how get this to work. I'm using an ArrayCollection of nested objects as dataSource for the tree. ...

WPF drag distance threshold

I have a program with two WPF treeviews that allow dragging and dropping between the two. The problem is, it can be annoying to open / close items on the treeviews because moving the mouse just one pixel while holding the left mouse button triggers the drag / drop functionality. Is there some way to specify how far the mouse should move ...

Drag Drop using SendMessage

hi guys, This sounds funny..just a little experiment. i wanted to simulate a drag drop of a file on a Application/Window using Send Message. Is it possible? I dont have code for the application but on the executable. The application is IP Messenger. What i wanted to do is use "Send To" functionality to send the file to an .exe ,which ...

How to drop something into a flex tree item?

I just read a comment at FlexExamples: One thing to note about the tree is that it is really just a list in which items are displayed. What that means is, you can’t really drop somthing “into” folder unless the folder is open. Even in that case the user experience isn’t quite right. So try moving everything out of one of the folders ...

how to get a window to receive drag and drop files in Xcode

i am trying to get drag and drop working in xcode 3.1.4 on osx/leopard. any pointers or hints or maybe even example code? i cannot find anything out there and it is really disappointing. i want to have the interface respond if files are dragged on the main window. ...

How to make Movable forms in JS?

Ok on meebo.com there is instant messages that when you click at the top you can move around i wanna make something like that? So how do I make Movable forms in JS? ...

C# ListView DragDrop Event Method Executing Twice Per Drop

The method executes twice in a row and there's no apparent reason for doing so. It happens in VS2010 Express (4.0) and in VS2008 (3.5). public GUI() { InitializeComponent(); this.lvwFiles.DragDrop += new System.Windows.Forms.DragEventHandler(this.lvwFiles_DragDrop); this.lvwFiles.DragEnter += new System.Windows.Forms.DragEve...

C# Drag&Drop Move of Items in Current ListView

1) How do you move items in a ListView using Drag&Drop? I have implemented D&D copy for files dragged from a directory. 2) BTW, how do you get a directory link by D&D to ListView, I've seen applications that get the directory path by D&D from address bar of Windows Explorer. private void lvwFiles_DragEnter(object sender, DragEventArgs ...

Javascript tabs widget with drag and drop reordering

Do you know of a tab widget that has built-in drag+drop reordering? I'm building an editor-like interface and want to allow the user to reorder their tabs. So far I've been using ExtJS with a community plugin, but it's buggy and usually needs updating with every new ExtJS release. ...

Flex + Image + Disable Drag

How do I diable the drag-drop of an image. I've tried to stopPropagation, but that didn't help. Here is the snippet of the code that I've written <mx:Image width="24" height="24" complete="init()" dragStart="disableMove(event)" source="{(data.id==null)?'': (data.id.search('\\.') > 0) ? 'assets/icons...

How to update the position of a drag adorner during WPF drag-n-drop?

I'm using an adorner to show a 'ghost' of the element being dragged... var adornerLayer = AdornerLayer.GetAdornerLayer(topLevelGrid); dragAdorner = new DragAdorner(topLevelGrid, itemToDrag); adornerLayer.Add(dragAdorner); dragAdorner.UpdatePosition(e.GetPosition(topLevelGrid)); DragDrop.DoDragDrop(sourceItems, viewModel, DragDropEffect...

Jquery Drag and Drop Issues with position, help!

Hi, I am having some issues with drag, drop and positioning in jquery. Here is what I am trying to achieve: You drag a clone of a div to another div which is the "stage" I need to position of the clone and not the original Here is my attempt so far: $(function() { $("#workspacemaster").droppable({ accept: '.draggable', drop: func...

Draggable <td> content using jQuery

Hi, I would like to use jQuery and its drag-and-drop function, such as: http://jqueryui.com/demos/draggable/ In my case, I would like to enable drag-and-droping on content of an HTML table. For instance with a table of 20x20, in order to move a tag from a cell to an other cell. Is that hard to do? I don't see any example after sear...

jquery ui draggable elements not 'draggable' outside of scrolling div

hello all, i am super stumped. i have many elements (floating href tags) in a div with a set height/width, with scroll set to "overflow: auto" in the css. this is the structure of the divs: <div id="tagFun_div_main"> <div id="tf_div_tagsReturn"> <!-- all the draggable elements go in here, the parent div scolls --> </div> <div id="...

How to read file contents

Hi. I have a text view on which i m droping a plist file. It's displaying the path of the file which i dropped there. Now i want to read the contents of that file without opening the file. How to do that? Can anybody help me? ...

Jquery drag /drop and clone

Hi I need to achive this .. I have a set of droppable items ( basically I am droping designs on a apparel ) and I am dropping a clone.. If I don't like the dropped object (designs) - I want to delete that by doing something like hidden . But I am unable to do that. Please help me.. here is the code var clone; $(document...

Gears File Drag & Drop: getDragData doesnt refresh

Hello all, I've been implementing a Gears-powered fileupload mechanism for our app. It works great except for one small bug. When I drag files onto the window, the function call desktop.getDragData() properly gives me the list of files dragged over the first time. However, subsequent drops with calls to this function give me the origi...

Drag & Drop a Cell from column 1 row 1 to column 5 row 3 in same datagridview

I am trying to select a cell (not the entire row) and drag that cell to a different column and row in the same datagridview, i am programming in vb.net 2005 express. i have never used datagridview and dont know where to start, all the examples i have found online seem to cover everything except this behaviour. Does anyone have any ideas...

Can't drag jQuery UI dialog

I am using jquery 1.3.2 with jquery ui 1.7.2 and in one of my pages I can only drag the dialog when I click and hold on the text in the title bar? When I hover over the blank areas of the title bar title bar the icon changes to the move icon, however, when I attempt to drag via a blank area of the title bar I simply end up highlighting ...