drag-and-drop

Android GridView reorder elements via Drag and Drop

我只是一个虾纸丫 提交于 2020-01-09 12:19:56
问题 I have a GridView in an application I am working on. I would like to be able to reorder the items in the GridView via drag-and-drop. I have found lots of help for ListViews but nothing on GridViews. I want to achieve behaviour like in this launcher app http://www.youtube.com/watch?v=u5LISE8BU_E&t=5m30s. Any ideas? 回答1: If you don't resolve this problem I will provide my code. But it works on Android 3.0 and above, because I use android drag-n-drop framework grid = (GridView) findViewById(R.id

Drag and drop elements from list into separate blocks

不羁岁月 提交于 2020-01-09 12:14:08
问题 I'm trying to get a jQuery component similar to the one on this site. Basically, there is a list with available elements that you can drag and drop into several blocks. I have quite a bit of JavaScript development experience, but I'm quite new to jQuery, the language I want this to be scripted in. Can you please lead me to some example similar to the one showed above, or give me some hints on what would be a good place to start looking for something like this? 回答1: Maybe jQuery UI does what

Why is DragDrop not working under VS2010?

依然范特西╮ 提交于 2020-01-09 11:09:39
问题 I have a winforms app that uses a UserControl. The user control's job is to collect a file that the user drops on it from Windows Explorer, Open the file, determine the type and handle it accordingly. This control worked PERFECTLY under Visual Studio 2008 Pro. I upgraded to VS 2010 Pro, and now, it doesn't work. Is there a flag or a property that has changed that I should be aware of?? I made a quick demo to test. This demo works perfectly under 2008, but doesn't work at all under 2010. The

drag event for jquery-ui-sortable

那年仲夏 提交于 2020-01-09 10:06:10
问题 How to listen to drag event when a jquery-ui-sortable is being dragged? By hit-n-trial strategy, I've tried drag event from jquery-ui-draggable but it's not working. $('.widget_container').sortable({ drag: function(event, ui) { console.log('drag'); } }); 回答1: Use sort event for this purpose: $(".sortable").sortable({ sort: function(e) { console.log('X:' + e.screenX, 'Y:' + e.screenY); } }); http://jsbin.com/kegeb 回答2: If you need to handle the event when the user starts to drag, you should

drag event for jquery-ui-sortable

こ雲淡風輕ζ 提交于 2020-01-09 10:03:51
问题 How to listen to drag event when a jquery-ui-sortable is being dragged? By hit-n-trial strategy, I've tried drag event from jquery-ui-draggable but it's not working. $('.widget_container').sortable({ drag: function(event, ui) { console.log('drag'); } }); 回答1: Use sort event for this purpose: $(".sortable").sortable({ sort: function(e) { console.log('X:' + e.screenX, 'Y:' + e.screenY); } }); http://jsbin.com/kegeb 回答2: If you need to handle the event when the user starts to drag, you should

drag event for jquery-ui-sortable

懵懂的女人 提交于 2020-01-09 10:03:00
问题 How to listen to drag event when a jquery-ui-sortable is being dragged? By hit-n-trial strategy, I've tried drag event from jquery-ui-draggable but it's not working. $('.widget_container').sortable({ drag: function(event, ui) { console.log('drag'); } }); 回答1: Use sort event for this purpose: $(".sortable").sortable({ sort: function(e) { console.log('X:' + e.screenX, 'Y:' + e.screenY); } }); http://jsbin.com/kegeb 回答2: If you need to handle the event when the user starts to drag, you should

How could I Drag and Drop DataGridView Rows under each other?

北城余情 提交于 2020-01-09 06:15:05
问题 I've DataGridView that bound a List<myClass> and i sort it by " Priority " property in " myClass ". So I want to drag an " DataGridViewRow " to certain position to change it's " Priority " property. How could I "Drag & Drop" DataGridView Rows ?. And how to handle this ?. 回答1: I found this code sample on MSDN Note the following: 1). DataGridView property AllowDrop must be set to true (default is false). 2). The example below works out of the box when the DataGridView is NOT data-bound.

How could I Drag and Drop DataGridView Rows under each other?

做~自己de王妃 提交于 2020-01-09 06:14:27
问题 I've DataGridView that bound a List<myClass> and i sort it by " Priority " property in " myClass ". So I want to drag an " DataGridViewRow " to certain position to change it's " Priority " property. How could I "Drag & Drop" DataGridView Rows ?. And how to handle this ?. 回答1: I found this code sample on MSDN Note the following: 1). DataGridView property AllowDrop must be set to true (default is false). 2). The example below works out of the box when the DataGridView is NOT data-bound.

How could I Drag and Drop DataGridView Rows under each other?

南楼画角 提交于 2020-01-09 06:14:05
问题 I've DataGridView that bound a List<myClass> and i sort it by " Priority " property in " myClass ". So I want to drag an " DataGridViewRow " to certain position to change it's " Priority " property. How could I "Drag & Drop" DataGridView Rows ?. And how to handle this ?. 回答1: I found this code sample on MSDN Note the following: 1). DataGridView property AllowDrop must be set to true (default is false). 2). The example below works out of the box when the DataGridView is NOT data-bound.

jquery ui get id of droppable element, when dropped an item

我们两清 提交于 2020-01-09 06:10:26
问题 How we get the id of droppable element, when dropped an item? Here i use jquery ui and asp.net mvc. <table id="droppable"> <tr> <td style="width:300px;height:50px">Backlog</td> <td style="width:300px;height:50px">Ready</td> <td style="width:300px;height:50px">Working</td> <td style="width:300px;height:50px">Complete</td> <td style="width:300px;height:50px">Archive</td> </tr> <tr id="cart"> <td id="BackLog" class="drag" style="width:120px;height:50px;"> <img class="draggable" id="1234" src="..