This is because Chart is expecting only of format "chartitems" in the
default handler in the ChartBase class, which is protected function
dragEnterHandler(event:DragEvent):void and the item from the datagrid I
think has the format "items"

 

So make sure, after you handle the event in doDragEnter, to call
event.preventDefault().

 

Thanks

-Sunil

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vijay95052
Sent: Tuesday, September 25, 2007 9:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex3: dragging from a datagrid to a chart

 

Hello

the flex3 drag and drop to charts feature is cool...
however, i was unable to drag a row from a datagrid to the chart - 

i have set dragEnabled to true on the datagrid, and in the chart i have
dropEnabled="true"
dragEnter="doDragEnter(event);"
dragExit="doDragExit(event);" 
dragOver="doDragOver(event);"
dragDrop="doDragDrop(event);">

my doDragEnter() does not get invoked when dragging from a datagrid - 
but it does work well when dragged from another chart

 

Reply via email to