Drag-and-drop lets you move items from one List control to another : List Drag Drop « Components « Flex






Drag-and-drop lets you move items from one List control to another

Drag-and-drop lets you move items from one List control to another
           
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initApp();">
    <mx:Script>
    
    import mx.collections.ArrayCollection;
    private function initApp():void {
        srclist.dataProvider =new ArrayCollection(['A', 'B', 'C']);
        destlist.dataProvider = new ArrayCollection([]);
    }
  
    </mx:Script>
    <mx:HBox>
        <mx:VBox>
            <mx:Label text="Available Activities"/>
            <mx:List id="srclist" allowMultipleSelection="true" dragEnabled="true" dragMoveEnabled="true"/>
        </mx:VBox>
    <mx:VBox>
        <mx:Label text="Activities I Like"/>
        <mx:List id="destlist" dropEnabled="true"/>
    </mx:VBox>
    </mx:HBox>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Dragging and dropping among three List componentsDragging and dropping among three List components
2.Drag drop to copy between two ListsDrag drop to copy between two Lists
3.List dropEnabled="true" ,dragMoveEnabled="true"List dropEnabled=
4.Drag And Drop List SampleDrag And Drop List Sample
5.Drag and Drop Within a ListDrag and Drop Within a List
6.Drag and Drop Between ListsDrag and Drop Between Lists
7.Drag-and-drop to move items from one MX List control to anotherDrag-and-drop to move items from one MX List control to another
8.Drag and drop to item in List To another ListDrag and drop to item in List To another List
9.List To List Drag and DropList To List Drag and Drop