When you create the DragSource, do this:
dragSource.addData(initiator.selectedItem, "data");
and on drop, do this:
event.dragSource.dataForFormat("data")
-J
On Thu, Mar 13, 2008 at 9:57 AM, Rafael Faria <[EMAIL PROTECTED]>
wrote:
> I have this handler... but i dont know how to get select the item once
> i drop it to tree2.
>
> event.target or relatedTarget makes reference to the Trees not to the
> element itself.
>
> Any ideas?
>
> raf
>
>
> --- In [email protected] <flexcoders%40yahoogroups.com>, "Giles
> Roadnight" <[EMAIL PROTECTED]> wrote:
> >
> > You'll have to add an eventListener that fires on the itemDrop (or
> whatever
> > it is) event. In that code then just set the selected Item to the object
> > passed in the event.
> >
> > On Wed, Mar 12, 2008 at 6:22 AM, Rafael Faria <[EMAIL PROTECTED]>
> > wrote:
> >
> > > If i'm dragging a item from tree1 to tree2 how do i select the item
> > > after i drop it on tree2?
> > >
> > >
> > >
> >
> >
> >
> > --
> > Giles Roadnight
> > http://giles.roadnight.name
> >
>
>
>
--
"Therefore, send not to know For whom the bell tolls, It tolls for thee."
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]