Dragging and dropping among three List components : List Drag Drop « Components « Flex






Dragging and dropping among three List components

Dragging and dropping among three List components
           
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    backgroundColor="white">
    <mx:Script>
        
        import mx.collections.ArrayCollection;
        [Bindable]
        public var allAssets:ArrayCollection = new ArrayCollection([
            {label:"A"},
            {label:"B"},
            {label:"C"},
            {label:"D"}
        ]);
      
    </mx:Script>
    <mx:Panel title="DivorceNET" width="300">
        <mx:Label text="Assets" />
        <mx:List id="listAll" dataProvider="{allAssets}" width="100%" height="90" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" />
        <mx:HBox width="100%">
            <mx:VBox width="50%">
                <mx:Label text="His" />
                <mx:List id="listHis" width="100%" height="90" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" />
            </mx:VBox>
            <mx:VBox width="50%">
                <mx:Label text="Hers" />
                <mx:List id="listHers" width="100%" height="90" dragEnabled="true" dragMoveEnabled="true" dropEnabled="true" />
            </mx:VBox>
        </mx:HBox>
    </mx:Panel>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Drag-and-drop lets you move items from one List control to anotherDrag-and-drop lets you move items from one List control to another
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