drag-and-drop

check if div contains an element in jQuery

I'm bulding some drag and drop widgets in jQuery, once they've been dropped I need to check if my drag and droppable widget are inside another div. <div id="droptarget"> <div class="widget">I'm a widget!</div> </div> I've had a look at $('#droptarget').each but can't seem to figure it out. Any ideas? ...

Any way to extend or modify drag-and-drop in Outlook with VSTO?

I have an add-in I'm working on in Outlook that relies on drag-and-drop to save an Outlook file to a file automagically. The problem is that the default behaviour is to use the email's subject line as the filename, and emails with extremely long subject lines send an error as there's not enough space in 250 characters to store all of it ...

Drag-Drop and two forms. How can I detect when the drop has happened in outside app.

I've got a WinForm where the user has the ability to drag an item from it to a different application. In my case the second application is SolidWorks. I have no problem getting the drag part working. The user is able to drag the part from my application to the SolidWorks drawing, but I want to close my WinForm when the user has dropped t...

WPF Drag n drop doesn't fire CommanBinding.CanExecute

Yes, I know it sounds weird, but it doesn't, the question is why, and if there's a work around. It works with everything, even when you hit PrintScreen or Pause keys, CanExecute fires. So after doing a drag drop, in order to make it fire, you have to do "something" else, like a mouse click, focus, hit a key, anything. That'll make the ev...

Drag and drop from an email file attachment in GroupWise to a .NET application

I'm trying to allow an attachment from an email open in Novell GroupWise to be dropped into my C# WinForms application. The standard .NET functionality doesn't work. In the DragDrop event of a control, e.Data.GetFormats() returns the following. FileGroupDescriptorW FileGroupDescriptor FileContents attachment format I can get the file...

Drag'n'drop data between instances

I'm attempting to allow my users to drag and drop certain rows of data from one custom list control to another, where the second list control is in another instance of the same application. DoDragDrop(parameterTypedListView.SelectedObjects, DragDropEffects.Copy); where parameterTypedListView.SelectedObjects is a generic IList where T ...

jQuery: swap images - almost done

Hello. Overview The user can drag an image from "#products" to "#container". They will fall into the normal flow of elements. All images inside of "#container" can be dragged around in side that container in a grid. In the "#container", If an image is dropped where another image is, they swap places. Problem When I start to move th...

WPF Dragging elements from listbox

In my WPF application I've got a listbox with DataTemplate defined as follows: <DataTemplate x:Key="ListBoxTemplate"> <ui:TaskMonthPreview/> </DataTemplate> and TaskMonthPreview is my custom control defined as follows: <UserControl x:Class="Lista.TaskMonthPreview" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/...

JQuery drag and drop stops working on certain objects?

Hello all, I've successfully been able to make elements (like div's, panel's, whatever) draggable by using this bit of Jquery: <script type="text/javascript"> $(function() { $(".drag").draggable({ revert: true }); }); </script> This works fine for anything that already exists on the page before page_load is done ...

.droppable doesn't seem to trigger anything? JQuery + ASP

Hi All, With the help of the stackoverflow community, I've got the dragging to work perfectly using JQuery. Now, I've assigned a .drop class (and made it .droppable), but whenever I drop a .draggable onto the .droppable... nothing happens! Is there an error in javascript? <script type="text/javascript"> $(document).ready(function()...

Design-time drag and drop in Delphi?

Before Delphi 2006 (I think) introduced the TFlowPanel and TGridPanel, I did a control that was similar in concept. It still does a couple of things those controls do not do, and when upgrading my code to Delphi 2009, I decided to add a couple of enhancements to that as well. Right now, the order of the child controls is determined by t...

How to move insert caret on textbox when accepting a Drop

I have a TreeView and a Multiline Textbox together on the same form in a Windows form. I have drag and drop setup so that I can drag a node from the TreeView over to the textbox and insert text into the textbox (this is working). I would like to enhance this so that as the mouse is dragged over the textbox some sort of indicator moves ...

CSS issue - my DIV stays collapsed!

Hello all, On the homepage of my website - www.mobiuspc.com, I have some distinct sections that I color coded so I could see how its all laid out. There is the master page section, which works just fine (its the tan bar with buttons like "Components" and such), and at that level and up everything works as best as I could wish for. Down...

Win API to emulate drag of a file onto a window

Is there any Win API to emulate drag of a file onto a window? ...

Get the mouse position during drag and drop

Does anyone know how to get the correct mouse position during a drag-and-drop operation in WPF. I've used Mouse.GetPosition() but the returned value is incorrect. Thanks. ...

i need drag n drop in jquery?

Hello, I'v bean searching for a such plugin and I think found it http://batiste.dosimple.ch/blog/posts/2008-05-18-1/jquery-drag-and-drop-and-resize-event-delegation.html but the problem is .. how can I define events? .. when the object gets dropped or re-sized I call a function that print all changes in some like name:div1; top:10;...

WPF - Drag from withing DataTemplate

I have a ListBox displaying employees with a DataTemplate - it looks very similar to this screenshot. I want to be able to click on the employee photo, drag it and drop it somewhere out of the ListBox. How can I do that? I am not sure how to capture the PreviewMouseLeftButtonDown event of the Image, since it's inside the DataTemplate. E...

Passing a variable value from javascript to ASP

Hello all, With the help of this community, I've been able to pass a static chunk of text from javascript (clientside) to ASP 3.5 (server side)! This piece of code works beautifully: $('.drop').droppable({ tolerance: "touch", // Here should be a string drop: function() { $('[id$="myHidden"]').val('Testy test test'); __...

WPF: How do I allow scrolling with the mouse wheel in a ListView while dragging ListView items?

I have implemented drag and drop in a ListView in my WPF application. Items can be dragged and dropped inside the ListView, and also into a TreeView that is beside the ListView. Currently, I have it set up so that when you drag to the bottom of the ListView, it automatically scrolls down the list. What I'd like to know is if there's ...

Using .net RichTextEdit, but filtering data types?

The RichTextEdit control in .net does 99% of what I need to do for my application, except for a few little things: 1) I want to disallow pasting/dragging images into the control 2) When text is pasted/dragged into the control, I want to reset its style to the control's default As far as I can work out, Microsoft hasn't provided any type...