Just realized that losing selection after a drag & drop operation is
actually the correct list behavior and is not linked to custom
renderers...

If I remove the custom renderers and repeat the same operation I will
also lose any prior selection made after the drag & drop.

Can someone else confirm this ? 

Just do the following : 
- create a list
- allow : multi sel,drag&drop 
-Execute your program
- Select an item 
- Perform a drag&drop

Result =  your selection should disappear after the drop

Is this behavior intended by Adobe Flex, and why ?
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If you ask too soon, you will not know when it changed.  You should ask
> in updateDisplayList
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of icepaco33
> Sent: Wednesday, November 14, 2007 7:51 PM
> To: [email protected]
> Subject: [flexcoders] Re: How to access the List from it's ItemRenderer
> 
>  
> 
> isItemSelected(...) always returns false because the list of
> ListBase(owner) doesn't have any selections :
> 
> selectedItems.length = 0
> selectedIndex = -1
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> , Adnan Doric <astronaute@> wrote:
> >
> > icepaco33 wrote:
> > > Greetings,
> > > I am trying to have access to the List which renderers the item from
> > > an item renderer.
> > >
> > > What I want basically is to be able to determine if an item is
> > > 'selected' from an item renderer.
> > >
> > > So I have overriden the set data prop in order to do this:
> > >
> > > override public function set data(value:Object):void
> > > {
> > > super.data = value; 
> > > //Here I'd like to access the list to do :
> > > if (list.isItemSelected(value) )
> > > currentState = "Selected";
> > > else
> > > currentState = "";
> > > }
> > >
> > > thanx !
> > >
> > >
> > >
> > > 
> > 
> > Hello,
> > 
> > Try ListBase(owner).isItemSelected(data)
> > 
> > Cheers,
> > Adnan
> >
>


Reply via email to