1 Reply Latest reply on Aug 11, 2010 6:37 AM by BhaskerChari

    copy list items

    Hannes1234

      Hello,

       

       

      I used this example:

       

      http://www.flex-blog.com/drag-and-drop-from-datagrid-or-advanceddatagrid-to-tree/

       

      for my Flex Application and it works fine, Now I would expand this application in that way to leave the items in the list unchanged by drag and drop, so an item should be copied and droped into the tree,

      Is there a possibility to do it in this way and how.

       

      My first approach was to copy the items- array:

       

      var draggedItemsCopy:Array = new Array(ObjectUtil.clone(draggedItems)); 

       

      but this doesn't work.

       

      Does anyone have an idea how I could do it,

       

      Thanks and all the best,

      Michael