Thank you very much Tracy, will try that and post back results.

Best regards


Tracy Spratt-2 wrote:
> 
> In your renderer, override set data(), set a "dirty" flag, and call
> invalidateProperties()  then in an override to commitProperties, check the
> flag and perform your logic.
> 
>  
> 
> You cannot use creationComplete for item-dependent logic because renderers
> are recycled.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _____  
> 
> From: [email protected] [mailto:[email protected]] On
> Behalf Of |Mirko
> Sent: Monday, August 10, 2009 9:57 AM
> To: [email protected]
> Subject: [flexcoders] Image source in ItemRenderer
> 
>  
> 
>   
> 
> 
> Hi,
> 
> I have a situatition where i used custom ItemRenderer in TileList
> component.
> Item renderer basically consists of Image and Label component. Data
> provider
> is XML so Image and Label bindings are to da...@image and da...@desc which
> is displayed just fine.
> 
> My question is, how can i check before item is rendered if da...@image is
> empty and if it is, set a custom image (like image_missing.jpg or smth) as
> Image component source? I mean, i know a logic to check that but not sure
> where to implement it? I tried in ItemRenderer when creationComplete event
> is fired but with no success so if someone could help me a bit with a
> simple
> example or smth i would really appreciate it.
> 
> Thanks in advance,
> Mirko 
> -- 
> View this message in context: http://www.nabble.
> <http://www.nabble.com/Image-source-in-ItemRenderer-tp24900257p24900257.html
>> com/Image-source-in-ItemRenderer-tp24900257p24900257.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Image-source-in-ItemRenderer-tp24900257p24903832.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to