[flexcoders] Re: Checkbox in dataGrid problem

2007-01-10 Thread Doug Lowder
Check the data type of the myFIELD property; you may find it isn't 
the boolean you're expecting.  My guess would be String, in which 
case you could try:

mx:CheckBox id='cb' 
 selected={ data.myFIELD.toLowerCase() == 'true' }/

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

 
 
 I am using an inline render as follows:
 
 mx:itemRenderer
 mx:Component
   mx:VBox horizontalAlign=center
   mx:CheckBox id='cb' selected={data.myFIELD}/
   /mx:VBox
 /mx:Component
 /mx:itemRenderer
 
 No matter what value is in myFIELD null or true this checkbox 
always
 renders as checked ??
 
 What am I missing here ?





[flexcoders] Re: Checkbox in dataGrid problem

2007-01-09 Thread ben.clinkinbeard
Maybe try selected={data.myFIELD == true} ?


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

 
 
 I am using an inline render as follows:
 
 mx:itemRenderer
 mx:Component
   mx:VBox horizontalAlign=center
   mx:CheckBox id='cb' selected={data.myFIELD}/
   /mx:VBox
 /mx:Component
 /mx:itemRenderer
 
 No matter what value is in myFIELD null or true this checkbox always
 renders as checked ??
 
 What am I missing here ?