I have a checkbox as an itemrenderer in a datagrid as follows:

<mx:DataGrid dataProvider="{myArrayCollection}">
     <mx:columns>
          <mx:DataGridColumn headerText="Sent" width="75"
textAlign="center">
               <mx:itemRenderer>
                    <mx:Component>
                         <mx:CheckBox click="data.Sent=!data.Sent"
selected="{data.Sent}"/>            
                    </mx:Component>                        
               </mx:itemRenderer>
          </mx:DataGridColumn>
     </mx:columns>                                                              
                        
</mx:DataGrid>

The dataProvider is an AC pulled and created from mysql db. This is trimmed
version of my datagrid, in the full version there are many other columns,
and they all display the correct data.

The value "Sent" is a text string either "true" or "false". However, the
checkbox is always checked, regardless of the value of "Sent" being "true"
or "false".

If I set all "false" values to NULL, i.e. not set in the database, then
those items do not display as "checked" - however this is not the desired
method, I would rather have them set to "false" and not NULL

Has anyone else seen this issue, or can anyone shed light on the problem?
Thanks !
-- 
View this message in context: 
http://www.nabble.com/Flex-3-checkbox-as-itemrenderer-in-datagrid%2C-%22selected%22-property-boolean-not-working-tp21131337p21131337.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to