The ampersand oprator cannot be used inside XML tag.
you can either use "condition1 && 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 [email protected], "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?
>


Reply via email to