Re: [flexcoders] drag and drop from Tree to List

2008-11-10 Thread anuj sharma
Hi
I am not sure I get that but in general if you drag and drop from lets' say
'A' to B' ,I have used to drag and drop both ways from one list to another
and I did is as follows

A.dragMoveEnabled=true;
A.dragEnabled=true;
A.dropEnabled=true;

B.dragMoveEnabled=true;
B.dragEnabled=true;
B.dropEnabled=true;


Thats worked in my case , i was moving entries though. Hope that helps
Anuj
On Mon, Nov 10, 2008 at 11:14 AM, graysonpierce [EMAIL PROTECTED]wrote:

   I have a tree and a list that I'd like to use drag and drop on to do the
 following:

 1. Do reordering in the list (ie move the items around)
 2. Drag items from the tree to the list in order to copy items

 The problem I'm experiencing is that when I turn on dropEnabled=true
 on the list the reordering of the list works fine however it stops
 allowing the tree to drop items on the list even if I explicitly set a
 drag enter function list this

 public function onDragEnter( event:DragEvent ) : void {
 DragManager.acceptDragDrop(List(event.currentTarget));
 }

  



RE: [flexcoders] drag and drop from Tree to List

2008-11-10 Thread Tracy Spratt
Because the dataProviders are presumably dissimilar, with the tree being
hierarchical and the list being linear, you will not be able to depend
on the built-in functionality, but will need to override the drag
handler functions, and update the dataProviders yourself.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of graysonpierce
Sent: Monday, November 10, 2008 2:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] drag and drop from Tree to List

 

I have a tree and a list that I'd like to use drag and drop on to do the
following:

1. Do reordering in the list (ie move the items around)
2. Drag items from the tree to the list in order to copy items

The problem I'm experiencing is that when I turn on dropEnabled=true
on the list the reordering of the list works fine however it stops
allowing the tree to drop items on the list even if I explicitly set a
drag enter function list this

public function onDragEnter( event:DragEvent ) : void {
DragManager.acceptDragDrop(List(event.currentTarget));
}

 



RE: [flexcoders] Drag and Drop from tree to List

2005-05-25 Thread Matt Chotin










Yep, dataForFormat(treeItems)
I think is what you want. As for only having one item in the destination List,
you could simply clear the list before adding in the treeItems in the dragDrop
handler.



Matt











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed
Sent: Wednesday, May 25, 2005 8:45
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drag and
Drop from tree to List





Hi,

I'm dragging and dropping from a tree to a list.

All the functionality works fine, but I'm trying
to call another 
method when the item is dropped with the name of
the file from the 
tree as the argument to that method.

Example: Tree has two objects in a folder node
called files:

File1.txt and File2.txt

When I drag from the tree and drop into the List
container (List1) I 
want to call a method which has the File1.txt or
File2.txt as the 
argument. Can I use the dataForFormat?

Also if I want to restrict this list to only
having 1 file in it how 
can I have it to only have the last item that I
dropped into it, 
thus removing the previous item, if there was one
there.

I tried to put a change event handler on the list,
but when you drop 
an Item into the list this event is not called,
which I find 
extremely wierd being that the list has in fact
'changed'. Explain 
that one!

Regards,

Iain















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.