Using a List, Tree, or DataGrid control

Flex includes support for the drag-and-drop operation directly in the List, Tree, and DataGrid controls. You can use any of these controls as the drag initiator, which makes the process of dragging and dropping simpler than for other controls.

If the initiator is a List, Tree, or DataGrid control, you set the dragEnabled property to true; you do not need to define a dragBegin or mouseDown event. Flex automatically creates a DragSource object for the drag operation, and calls the DragManager.doDrag() method to initiate the drag.

The DataSource object created by Flex contains the following data objects:


Version 1.5

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/15/flex_docs_en/00000623.htm