I would like to drag two fields from a datagrid in a custom component used as a popup
to two different text fields in the module in which the popup was called.
I have two questions:
1. Is it possible to split out the the two cells of the dragged datagrid (in the popup component) and drop them into
different text fields in the module?
2. Where to the various drag and drop event handlers have to be defined? In the component where the drag
is initiated or in the module where the drop occurs - or do I split the functions putting the drag event handler
in the component and the drop event handler in the module?
If you're dragging a row out of a datagrid, then you don't really need extra
code in the popup.
Assuming your module has two text fields, then some container of those two
textfields should have the dragEnter, dragOver, dragExit and dragDrop
handlers. You can copy code from mx.controls.listClasses.ListBase.as. On
the dragDrop event, you take the data and split it into your two text
I'll give that a try.