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