[flexcoders] Re: Conditional itemrenderer

2007-12-27 Thread candysmate
--- In flexcoders@yahoogroups.com, mydarkspoon [EMAIL PROTECTED] wrote:

 The ampersand oprator cannot be used inside XML tag.
 you can either use condition1 amp;amp; condition2 or pass the
 params to function which evaluates to Boolean.
 
 Also, take a look at this:
 http://www.herrodius.com/blog/17
 
 Almog Kurtser,
 http://www.kaltura.com
 

Many thanks. That helped a lot.

best,  Graham




[flexcoders] Re: Conditional itemrenderer

2007-12-27 Thread mydarkspoon
The ampersand oprator cannot be used inside XML tag.
you can either use condition1 amp;amp; condition2 or pass the
params to function which evaluates to Boolean.

Also, take a look at this:
http://www.herrodius.com/blog/17

Almog Kurtser,
http://www.kaltura.com

--- In flexcoders@yahoogroups.com, candysmate [EMAIL PROTECTED] wrote:

 I have a clickable image inside a datagrid column which is only
 enabled if datagridcolumn 'code' contains data using:
 
 mx:DataGridColumn
   headerText=M
   width=26
   textAlign=center
   editable = false
   
 mx:itemRenderer
 mx:Component
mx:HBox horizontalAlign=center
click=outerDocument.moveToInactive(); enabled =
 {data.code != ''}
 mx:Image height=16 width=16
 source=@Embed('/images/forwardicon.png') toolTip=Click to make
 'Inactive' visible={data.code != ''}
   
   /mx:Image
   /mx:HBox  
 /mx:Component
   /mx:itemRenderer
 /mx:DataGridColumn
 
 However, I need to expand the condition so that the clickable image
 operates only if more than one column contains data.
 I tried:
 
 enabled ={data.code != ''  data.sub_category != ''  data.retail
 != ''}
 
 without success.  Any ideas please guys?