drag-and-drop

On JQuery UI do one draggable connectToSortable multiple sortables

ε祈祈猫儿з 提交于 2020-01-24 21:51:27
问题 In JQuery UI, I have a draggable, It have an option connectToSortable as below: $("#social li").draggable({ connectToSortable: '#form_builder_sortable', helper:'clone', revert:true }); '#form_builder_sortable' is a sortable as below: $("#form_builder_sortable").sortable(); I want 1 draggable list connect to multiple sortable list, such as: $("#social li").draggable( { connectToSortable: '#form_builder_sortable, #form_builder_sortable_sample', helper:'clone', revert:true }); Have you got any

On JQuery UI do one draggable connectToSortable multiple sortables

三世轮回 提交于 2020-01-24 21:51:03
问题 In JQuery UI, I have a draggable, It have an option connectToSortable as below: $("#social li").draggable({ connectToSortable: '#form_builder_sortable', helper:'clone', revert:true }); '#form_builder_sortable' is a sortable as below: $("#form_builder_sortable").sortable(); I want 1 draggable list connect to multiple sortable list, such as: $("#social li").draggable( { connectToSortable: '#form_builder_sortable, #form_builder_sortable_sample', helper:'clone', revert:true }); Have you got any

Drag View from Activity and drop it in new Fragment android

戏子无情 提交于 2020-01-24 20:57:28
问题 i try to implement a Drag and Drop in my app, I drag the view from my Activity, and i want drop it in new Fragment created in the moment when drag start, but don't work the Drag Listener in the Fragment, i use the next code in my activity: findViewById(R.id.button1).setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View view) { vibra(); ClipData data = ClipData.newPlainText("", ""); DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(view); view

my solution for drag drop functionality is not working in firefox

…衆ロ難τιáo~ 提交于 2020-01-24 20:13:13
问题 I'm implementing simple drag and drop functionality into my website. It works fine as per drag and drop of image concerns. However, now I want to save dropped image into the server. For that I have included data regarding image in view as hidden elements, to access this data in jQuery I need dropped image id. I have tried getting this from following code it work's great in chrome but doesn't in firefox please help : code: view <!-- dragable image --> <a href="#?w=976" rel="popup1" id="<?=

DragAndDrop selectedItems of one silverlight Datagrid into another

情到浓时终转凉″ 提交于 2020-01-24 19:30:08
问题 Currently I am using "DataGridDragDropTarget" to Drag a row from one datagrid to another, but a client want to be able to select multiple rows from one datagrid and drop them into another. I played around a bit but realized "DataGridDragDropTarget" seems to be able to drag and drop single row at a time only. Is there any alternative way to DragDrop multiple selected rows? 回答1: Pressing Shift key while dragging multiple rows to another datagrid really works for this. But can anyone suggest how

Detect when scrolling is necessary while user drags listview items

旧街凉风 提交于 2020-01-24 11:37:08
问题 INTRODUCTION: I am implementing rearranging of listview items without using OLE drag and drop. PROBLEM: I have successfully solved most of this task, except scrolling up/down when user wants to drop items at the position that is not currently visible. QUESTION: I am able to scroll up/down listview by using following messages: SendMessage(hwndListView, WM_VSCROLL, (WPARAM)SB_LINEUP, (LPARAM)0); SendMessage(hwndListView, WM_VSCROLL, (WPARAM)SB_LINEDOWN, (LPARAM)0); I need your advice in

How do I get the URL for a dropped image using a Chrome userscript?

我怕爱的太早我们不能终老 提交于 2020-01-24 02:19:08
问题 In the following chrome user script, how can I get a url for an image that I drag from my desktop? Where I have the debugger line, I'm getting the empty string for e.dataTransfer.getData("text") and e.dataTransfer.getData("url") // ==UserScript== // @match http://*/* // @match https://*/* // ==/UserScript== function preventDrag(e) { e.stopPropagation(); e.preventDefault(); } function handleDrop(e) { console.log("Just dropped: " + e.dataTransfer.files[0].name); debugger // TODO: grab the url

while dragging, I don't see helper-lines in Silverlight

回眸只為那壹抹淺笑 提交于 2020-01-23 18:54:05
问题 Silverlight 4, Toolkit During dragging an item on TARGET CONTROL, there are NOT visible lines showing (during mouse move) actual position where will be dragged item put on (for example, between items, inside item, before item, …) source control <toolkit:ListBoxDragDropTarget AllowDrop="False" AllowedSourceEffects="Copy, Link, Scroll"> <ListBox ItemsSource="{Binding ToolboxItems}"> <ListBox.ItemTemplate> <DataTemplate> <!-- some binding --> </DataTemplate> </ListBox.ItemTemplate> </ListBox> <

how to drag and save outlook email into WPF application

邮差的信 提交于 2020-01-23 03:05:08
问题 I am creating a WPF application. i want to drag email from outlook into this wpf application and application needs to save it in a specific folder. i have tried using http://www.codeproject.com/Articles/28209/Outlook-Drag-and-Drop-in-C article. It works fine for winform. i tried using same code in WPF after fixing all compile time bugs but still it is not working. I have searched web a lot but cannot find any working solution for this problem. Can someone please provide any working sample

Drag and Drop QLabels with PyQt5

橙三吉。 提交于 2020-01-23 01:39:06
问题 I'm trying to drag and drop a Qlabel on another Qlabel with PyQt5: from PyQt5.QtWidgets import QApplication, QWidget, QToolTip, QPushButton, QMessageBox, QHBoxLayout, QVBoxLayout, QGridLayout,QFrame, QComboBox, QLabel, QLineEdit from PyQt5.QtGui import QIcon, QFont, QPixmap, QImage import sys class my_label(QLabel): def __init__(self,title,parent): super().__init__(title,parent) self.setAcceptDrops(True) def dragEnterEvent(self,event): if event.mimeData().hasFormat("text/plain"): event.accept