1 Reply Latest reply on Dec 11, 2007 12:15 AM by Power@IT

    Item Dragged to Canvas what is its name?

    mcadle Level 1
      So after a user has dragged multiple images onto a canvas, how do you get the source of an image at the users choosing? So if they drag 3 pics onto the canvas and they pick the first image and begin to move it, how do you get the source of that image to do something else with it?

      Thanks
        • 1. Re: Item Dragged to Canvas what is its name?
          Power@IT Level 1
          Hello mcadle,
          For the first one, you may use the "mouseDown" event, and give some parameters which include the selected item(in datagrid, it is selecteItem) and write a function to do the drag operation.

          For the second one, you can declare a list oject(just example) and set it as the value of canvas's "dataProvider", then do something with the list object.