Drag and drop multiple items

Hi,
I am trying to do a drag and drop where the droppable area will accept all of the drops as long as they are within the box. For some reason, it sometimes only accepts one, and other times accepts all, only if they are right on top of each other. Any help would be greatly appreciated!
This is the drag and drop portion of the code:
$(".drop").droppable({ accept: '.C'});
$(".C").draggable({revert: 'invalid'});
Files Here:https://www.dropbox.com/s/ynjd5vans42k56u/testtime.zip?dl=0

Does this help?
drag-and-drop utility for Edge Animate(only x-axis)

Similar Messages

  • Drag and Drop Multiple Pictogram elements from the Palette

    I have created custom Objects in the palette that can drag and drop individual pictogram elements using a class that extends AbstractAddFeature. What I would like to know if it is possible to drag and drop an item from the palette that contains multiple pictogram elements, such as task1, task2 and a connection between them? I cannot do this with my class from above since
    @Override
    public PictogramElement add(IAddContext context) {}
    only returns one PictogramElement.

    Hi,
    In my editor I am adding rectangle with associated label that are separate pictogram elements. However they are both linked to the same business object and more linked to each other.
    Please look at example from my code:
    @Override
    public PictogramElement add(IAddContext context) {
    final Task addedTask = (Task) context.getNewObject();
    final ContainerShape target = context.getTargetContainer();
    final IPeCreateService peCreateService = Graphiti.getPeCreateService();
    final IGaService gaService = Graphiti.getGaService();
    final ContainerShape containerShape = peCreateService.createContainerShape(target, true);
    int width = 0;
    int height = 0;
    width = context.getWidth() <= 0 ? getWidth() : context.getWidth();
    height = context.getHeight() <= 0 ? getHeight() : context.getHeight();
    final Rectangle invisibleRectangle = gaService.createInvisibleRectangle(containerShape);
    gaService.setLocationAndSize(invisibleRectangle, context.getX(), context.getY(), width, height);
    // create and set visible rectangle inside invisible rectangle
    RoundedRectangle roundedRectangle = gaService.createRoundedRectangle(invisibleRectangle, 20, 20);
    roundedRectangle.setParentGraphicsAlgorithm(invisibleRectangle);
    roundedRectangle.setStyle(addedTask.isOnlyLocal() ? onlyLocalStyle : getStyle());
    if(!addedTask.isAtomic()) roundedRectangle.setLineStyle(LineStyle.DOT);
    gaService.setLocationAndSize(roundedRectangle, 0, 0, width, height);
    insertInside(peCreateService, gaService, width, height, containerShape, invisibleRectangle, addedTask);
    ContainerShape labelShape = addLabel(target, addedTask.getId(), width, height, context.getX(), context.getY());
    link(containerShape, new Object[] {addedTask, labelShape});
    link(labelShape, new Object[] {addedTask, containerShape});
    updatePictogramElement(labelShape);
    layoutPictogramElement(labelShape);
    addInternalPorts(addedTask, containerShape);
    updatePictogramElement(containerShape);
    return containerShape;
    I think that linking or making somehow relation between pictogram elements should be enough.

  • Can't drag and drop Multiple pictures

    I can no longer drag and drop multiple iPhoto pictures to the Desktop. Drag and drop a single picture works OK but multiple pictures just doesn't work. I was able to do this in the past. I'm using version 9.4.2. Repairing Disk Utilities and restarting has not helped.
    Can anyone help? Your help is appreciated.
    Rookie

    Try this: make a temporary, backup copy of the library if you don't already have one (Control-click on the library and select Duplicate from the contextual menu) and try the following:
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - Select and run Option #1.
    OT

  • How do I drag and drop multiple files on a control?

    LabVIEW supports dragging and dropping a single file on a path control, and have the path control populated appropriately. I want a user to be able to highlight multiple files (say, from the OS Find File window, or anywhere really) and drop them into a path array control in LabVIEW. I was hoping putting a path control in an array would do the trick, but it didn't. The mouse cursor changes to the "+" icon as it did for a single file, but when I release the button the system just beeps. Is this even doable?
    Thanks, Bob Martin

    I guess I was hoping that the path control would realize it was in an array, and starting with the actual control where the drop occurred (if more than one item of the array is visible) start populating subsequent slots with the other file paths.
    I'm not sure how much work would be involved, but maybe I could make a control in VB that would accept the drop event and output the path array I'm looking for. I've never made a control in VB for LabVIEW before, so I'm leary of how much time that would take. I'll add this to my list of "things to do that never seem to get enough priority to do."

  • How can I drag and drop an item from one Tree control to another in LabVIEW 7.1?

    You can use the mouse up and down event on the two tree controls but the problem is making the correct selection in the second tree control. I want to be able to switch over to the selection bar of the second tree control so that I can place my item in the correct position. I know all possible workarounds with double-clicks and so on... but I really want a windows drag and drop.
    This is what I have for the moment. Please check the library below. I need to activate the selection bar of the second tree control somehow to get the position in the control. The VI below is written in LV 7.1
    Attachments:
    Drag&Drop.llb ‏65 KB

    Hi Jones,
    As far as I know this feature is currently not supported by the Tree control. A workaround, would be to use the vertical position of the mouse in the button up event to determine what line you�re dropping the item.
    If you would like the Tree control to include the drag and drop feature, please submit this as a Product Suggestion under the feedback at www.ni.com/contact.
    Good luck!
    Best regards,
    Philip C.
    Applications Engineer
    National Instruments
    www.ni.com/ask
    - Philip Courtois, Thinkbot Solutions

  • Drag and Drop UI Items vb net

    Hi everybody.
    This is my question:
    I need to use drag and drop onto an item, i really don't have any idea how to do this, if anybody can tell me something i'll be very thankful.
    I'm working with visual basic .net and SBO 2007

    Victor,
    Currently you do not have access to the Drag & Drop functionality of SAP Business One using the SAP Business One SDK.
    Apologies,
    Eddy

  • Drag and Drop Multiple attachments issue

    I'm having trouble with Mail - when I receive an email with multiple attachments, I like to drag and drop them into the folder short cuts that appear on the left of the finder windows. When I go to that folder later on the attachments aren't there, but their is a text file. The text file name is "yyyy". The number of "y" characters corresponds the number of attachments that I drag their. Has any one had this trouble before. I have done a total reinstall of the system on to a clean hard drive, and it is still happening. The G5 Dual 2.3 was new in Dec 05.
    (this is my first posting, so please be patient if I'm not doing this correctly)
    Cheers Andy

    Andy, the safer way would be to press the Save button that is in the header of your email and then select the folder where you want it saved.

  • Drag and drop multiple mail messages into finder

    I am trying to move multiple mail messages into finder folders for organization and filing purposes.  I know it will save these as mail files but that is what I would like anyway.  It lets me drag and drop one message at a time but does not let me do it for multiple messages at a time.  Does anybody know how to do this?

    You might consider using the "Archive" capability of Mail.  Look at Archive in Mail Help.
    charlie

  • Upgrade to 3.1.1 broke drag and drop form items

    after upgrading to 3.1.1 when I click the drag and drop icon in items on a form i can then move the fields around and when I hit next the page shows no fields, if I then click apply and look at the form the fields have not moved..

    Hello,
    For me this functionality is still working...
    Do you have the same in another browser? (I'm using FF)
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • Dragging and dropping multiple files

    for some reason if i select all files in a folder and want to move them i can't do it without hitting edit and copy. I used to be able to just drag and drop the group of files. now when the are all selected and i click on them to drag them it then releases the group and only one file is highlighted. Seems silly i know and i'm sure it's something simply but does anyone know what i'm doing wrong?

    The only way I can possibly replicate your behavior is in List view by clicking on the far left of the column. If I click on the item line anywhere from the icon right, I stay selected. All other views work without problem.
    Even if I click and release on one item in the selected group, the group stays selected.
    So, is it only with the List view and clicking to the left of the icon, or is it all views?

  • Drag and drop multiple mail messages into a folder in finder

    Hello All,
    I want to archive emails into folders in the finder. I can do this by dragging and dropping individual emails but not bulk emails.
    Does anywone know the best way of doing this?
    The reason I want to do it is once we have compleated a contract with a client, I want to archive all the messages, pictures, contacts etc into one finder folder. This way, my mail app wont keep growing horribly in size every year.
    Thank you

    Is the Archive function within Mail of any use?
    Archive messages
    You can store messages in an Archive mailbox so that you can quickly find them later when you’re ready to take action.
    Select one or more messages to archive.If you select a conversation, all messages in the conversation are archived.
    Choose Message > Archive or click the Archive icon in the Mail toolbar.An Archive mailbox is created for each account whose messages you archive. For example, if you archive a message sent to your MobileMe account and a message sent to your Gmail account, an Archive mailbox is created for each account.Archived messages remain in the Archive mailbox until you delete or move them. Depending on the account type, the Archive mailbox is stored on the mail server.
    Regards,
    Colin R.

  • Can't use drag and drop with items

    if I want to drag a drop files the icon or doc keeps attached to the mouse and the program is freezed, os I have to restart for e.g. mail. . If I want to move items I only can copy them and poaste. can anybody help?

    Now that I'm looking at it, I don't have it... but I still have the problem:(. I rebooted the PRAM, I cleaned my permissions, run utilities checks, nothing helps, I'm at the end of my wits. I called apple - all I got was bad attitude... I don't know what to do, this disfunction makes it impossible for me to work....
    does anybody know what I could do to fix this issue?

  • Drag and Drop in Item Renderer

    I created an item renderer for use in a TileList. This item
    renderer shows a thumbnail, name, and a few buttons. I want to
    enable drag but only for the image. I know it is easy to enable
    drag for Tile List items as a whole, but how do I do that for just
    part of an item, which was rendered using my custom item renderer?
    Thanks for any help!

    Have you tried to turn off drag for TileList and enable it
    only for the thumbnail? It should work.
    ATTA

  • Drag and Drop multiple boxes and snap to multiple locations then reveal button

    Hi I'm Trying to develop a small game where the user chooses from a range of boxes of the left of screen and can drag 3 of them separatley to 3 holding boxes on ther right. each box can be dragged to any location and the order is not important. Once the 3 holding boxes are all full I want a new button to appear. I completed a tutorial and I've got one box working perfectly but no matter what i try I can't get it working with multiple boxes and locations. Below is a list of the instance names of the movie clips plus my actionscript. I've attached a link to the flash file. Any help would be really appreciated. Cheers
    LINK
    http://www.sainters.net/flash_preview/flash_test/flash test_v6.fla.zip
    INSTANCE NAMES
    box 1 = "circle_mc"
    box 2 = "circle_mc2"
    both the grey boxes are called = "targetCircle"
    ACTIONSCRIPT
    function dragSetup(clip, targ) {
    clip.onPress = function() {
    startDrag(this);
    this.beingDragged=true;
    clip.onRelease = clip.onReleaseOutside=function () {
    stopDrag();
    this.beingDragged=false;
    if (eval(this._droptarget) == targ) {
    this.onTarget = true;
    _root.targ.gotoAndStop(2);
    } else {
    this.onTarget = false;
    _root.targ.gotoAndStop(1);
    //the variables below will store the clips starting position
    clip.myHomeX = clip._x;
    clip.myHomeY = clip._y;
    //the variables below will store the clips end position
    clip.myFinalX = targ._x;
    clip.myFinalY = targ._y;
    clip.onEnterFrame = function() {
    //all these actions basically just say "if the mouse is up (in other words - the clip is not being dragged)
    // then move the MC back to its original starting point (with a smooth motion)"
    if (!this.beingDragged && !this.onTarget) {
    this._x -= (this._x-this.myHomeX)/5;
    this._y -= (this._y-this.myHomeY)/5;
    //if the circle is dropped on any part of the target it slides to the center of the target
    } else if (!this.beingDragged && this.onTarget) {
    this._x -= (this._x-this.myFinalX)/5;
    this._y -= (this._y-this.myFinalY)/5;
    dragSetup(circle_mc,targetCircle);

    Two things...
    1) if you want both circles to be draggable you need to execute that last line twice, once for each.
    dragSetup(circle_mc); // left off second argument purposefully
    dragSetup(circle_mc2);
    2) you do not want to name the targets the same name... only one will work as a target that way.  GIve them different names, and assign each one a property like...
      targetCircle1.isTarget == true;
      targetCircle2.isTarget == true;
    and in your hittest function test for that property.  And if you don't want to allow the user to drop two circles on the same target, set that property to false after it is dropped on... something like...
    if (this._droptarget.isTarget) { // may still need eval() portion
        this._droptarget.isTarget = false;
    Back to item 1... with this approach you won't need to pass the target as an argument, unless you need to have each circle dropped on a specific target instead of any of them (in that case you go back to specifying and testing the target instance)
    Your overall dragSetup function will change in various ways if you follow what is offered here as far as allowing for any circle to be placed on any target.  If you require specific targets, then your code would remain much as it is except you still need different instance names for all the objects.

  • Dragging and dropping an item within horizontalList does not display correctly

    It appears that when I drag an item from a HorizontalList to another location within the same HorizonList, it does not display the images correctly. In my HorizontalList, I have an itemRenderer that shows the thumbnail image of the item.  I have about half a dozen items in the list and when I drag the sixth item and move to the beginning of the list, the display looks as if the first and the sixth element are switched, while in reality the resulting dataProvider array seems to have the right order, meaning the sixth element became the first element and the first element became the second element and so on. Has any one seen such a behavior and how do I rectify this? Thanks in advance. Cheers, Ramesh
    The HorizontalList def is
    <mx:HorizontalList id="myList" width="92%" height="100%" columnWidth="90" rowHeight="105" rollOverColor="#f26722"
                        itemRenderer="com.myListRenderer" labelField="name" dataProvider="{arr}" columnCount="10"
                        click="updateView(event)" dragEnabled="true" dropEnabled="true" dragMoveEnabled="true" >
    </mx:HorizontalList>
    The renderer code is
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalScrollPolicy="off" verticalScrollPolicy="off" horizontalAlign="center"
            verticalAlign="middle" width="90" height="90" verticalGap="0" creationComplete="init()" >
    <mx:Script>
        <![CDATA[
            private function init():void {
                imageFile.source = data.url;
                imageName.text = data.name;
        ]]>
    </mx:Script>
        <mx:Image id="imageFile" scaleContent="true" width="90" height="70" horizontalAlign="center" verticalAlign="middle"/>
        <mx:Label id="imageName" height="18" width="90" textAlign="left"/>
    </mx:VBox>

    Hi Alex,
    In your blogpost on itemRenderers, you discussed something relevant in a brief section on "Background color changes when data changes". However, I could not find any reference for use on dataChange event handler. Can you pelase point me to the right article?
    Implementing dataChange event instead of creationComplete did not solve my issue. I still had the issue. Thanks, Ramesh

Maybe you are looking for

  • Report Painter GRR3

    Hi all! This is my first time to create a report painter, i'm creating a report painter to display individual Cost Centers for each Cost Center Group. The report is working fine. However, i just have a problem in the selection screen. My selection sc

  • Querying a Flash Lite content type running in the player

    In the current Flash Lite specs, it's not possible to query the content type that is running from within the Flash Lite player (wallpaper, screensaver, standalone, etc). My questions: 1.) Is this something that can be (easily) implemented in the next

  • How do I upgrade from 2014 to 2014.2

    I am trying to learn more about Illustrator and noticed that I was using a different version than the guy in Lynda.com. He just got to the curvature tool and I do not even have it. So, I checked and I have 2014 version not 2014.1 or 2014.2 so it is n

  • Premiere Pro CS3: How do I get rid of hundreds of short horizontal lines all over the screen?

         I have taken over a high school computer lab. We have Premiere Pro CS3. The Premiere Window gets peppered with many hundreds of horizontal dashes that interfere with readability. The dashes are uniformly about 16 pixels long and two or three pix

  • HT4623 I do not have the software message in the settings screen

    In the sttings screen I do not have the settings message so that I may upgrade software