Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #2585 (new enhancement)

Opened 4 years ago

Last modified 2 years ago

Drag multiple items

Reported by: erland@lewin.nu Assigned to: someone
Priority: high Milestone:
Component: script.aculo.us Version:
Severity: normal Keywords:
Cc: sokrAt3s

Description

I would like to be able to select multiple items (using click, shift-click and control-click), and then drag all selected items to a droppable.

My current need is for a photo site, do drag multiple thumbnails to an album to add them to that album, where the number of thumbnails is so large that dragging every one individually would be too tedious.

Change History

02/04/06 16:37:50 changed by petermichaux@gmail.com

  • owner changed from thomas@fesch.at to petermichaux@gmail.com.
  • priority changed from normal to highest.

I have this mostly working and will be submitting a patch soon.

02/25/06 06:59:42 changed by wfgspam@gmail.com

+1, this would be very helpful!

02/25/06 20:11:20 changed by mampub@laposte.net

  • priority changed from highest to normal.

would use it too! being able to use a rectangular rubberband tool to select a bunch would be quite nice too...

02/25/06 20:12:01 changed by anonymous

  • priority changed from normal to highest.

sorry, didnt mean to change priority

03/06/06 03:18:32 changed by anonymous

That would be a perfect enhancement!

04/06/06 16:14:30 changed by anonymous

yon can see example of this enhancement here http://wiki.script.aculo.us/scriptaculous/revision/EffectsTreasureChest?rev=14 under title "overflow: scroll hack and draggable element substitution"

04/20/06 01:40:47 changed by dave@orangechicken.com

Would love to see this feature get taken care of (especially since it's the only one marked Highest priority, right?).

Rico's library has this and might be a good starting point (The example linked to above links to Rico's site).

05/02/06 17:03:26 changed by

I actually have this implemented and had it working. However, the newest version of scriptaculous broke how it functions. I now get random on click errors. Oh well. = (

I'd like to know how far along whoever is working on this is. If they aren't far/haven't started I'm sure I could get a patch out in less than a day...

05/04/06 00:06:24 changed by dave@orangechicken

Peter sent me the code where he left off. If anybody wants it let me know and I can send it off.

It's a significant rewrite (and does some nice housecleaning like separating dragdrop.js into drag.js and drop.js which is how it should be!).

There's open tickets included in the code (and it closes several other tickets). Please somebody take it and make it work!

06/03/06 17:22:52 changed by cory@slapweb.net

I would also like to see this working. Although I don't know that I would have the extra time or even knowledge to contribute to the actual code. Any updates?

06/07/06 04:16:20 changed by petermichaux@gmail.com

  • owner changed from petermichaux@gmail.com to someone.

Hi,

I have been playing with multiple select for quite a while now. I've come to the realization that multiple select should not be part of a dragdrop library and doesn't need to be. Different situations will require different multiselect behaviour.

Using the interesting moment hooks provided by the Yahoo! UI dragdrop library, I learned how to implement multiple select relatively easily. Although the example is for the Yahoo! UI library I think you could adapt the ideas very easily to the scriptaculous library. Perhaps only a hook or two needs to be added. You can see my example here

http://peter.michaux.ca/articles/2006/06/02/yui-multiple-drag-with-proxy

Perhaps someone could make an example for the scriptaculous site and then close this ticket.

Peter

12/11/06 20:34:24 changed by petermichaux

URL on my site is now http://peter.michaux.ca/article/4

06/15/07 21:00:27 changed by sf_basilix

Curious... has this ever been finalized in scriptaculous yet? I have a great need to be able to select multiple list-box items and drag them to another listbox, so the end-user does not have to drag one at a time. (this can be a very slow process with many list items).

I would love to know if this is still on the roadmap for completion, if it hasn't been already?

Great libraries BTW!! Keep up the great work!

SFB

07/18/07 12:30:11 changed by sokrAt3s

  • cc set to sokrAt3s.