Thanks for the response.

I've read that document and from what I understand dragEnter doesn't
have to do anything but have the dragmanager.acceptdragdrop.  I have
also looked at that list.  If you take that same thing and turn it
into a data grid it doesnt work.  It's like there is some Datagrid to
tree conspiracy going on....

On dragOver is where i would handle the difference between items and
tree items.  I can't however get that function to even fire since it
won't allow drops... 


--- In [email protected], "Stephen Gilson" <[EMAIL PROTECTED]> wrote:
>
> While it is not exactly what you want, there is an example with runnable
> code in the updated Drag and Drop doc on the Flex Doc Blog that shows
> how to drag from a List to a DataGrid. It requires that you modify the
> dragged data as part of the drop to make it compatible with the
> DataGrid.
>  
> http://blogs.adobe.com/flexdoc/drag_and_drop/
>  
> One thing to remember when writing the dragEnter handler is that for all
> controls except for Tree, the format string is "items" and the items
> implement the IDataProvider interface.
> For Tree controls the format string is "treeItems" and the items
> implement the ITreeDataProvider API interface.
>  
> Stephen
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Nate Pearson
> Sent: Monday, April 23, 2007 6:04 PM
> To: [email protected]
> Subject: [flexcoders] Re: Okay, I know this is possible...DataGrid to
> Tree
> 
> 
> 
> Anyone? I'm trying to present a demo tomorrow, this is the thing I
> haven't figured out.
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> , "Nate Pearson" <napearson99@> wrote:
> >
> > ...but I haven't seen it yet! I've seen the code but when I run it it
> > doesn't work!
> > 
> > How do allow for a datagrid to drop into a tree? All i need it to do
> > is have DragManger.acceptDragDrop(UIComponent(event.currentTarget))
> > on drag enter work! Everytime i do it I get a little red x.
> > 
> > Anyone have any code/examples to show me? If you say "override
> > dragEnter and put
> > DragManager.acceptDragDrop(UIComponent(event.currentTarget)) i wont
> > believe you! ;). 
> > 
> > Seriously, I've worked on this all weekend to no avail :(. I'm going
> > to dell taco now and I hope someone can help me by the time I'm back.
> >
>


Reply via email to