Try this as the ItemRenderer instead.
 
<mx:Component className="inlineCB">
                  <mx:HBox horizontalAlign="center" backgroundAlpha="100"  >
                   <mx:Script>
                    <![CDATA[
                     public var selected:Boolean;
                    ]]>
                   </mx:Script>                  
                   <mx:CheckBox id="cb" selected="{data.isSelected}"  click="selected=data.isSelected=cb.selected;"  />
                  </mx:HBox>
                  </mx:Component>
 
-John

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of app.developer
Sent: Thursday, November 02, 2006 10:53 AM
To: [email protected]
Subject: [flexcoders] Checkbox in Datagrid - checks disappear when scrolling

If I use

<mx:Component id="inlineEditor">

<mx:Canvas width="100%" height="100%">
<mx:Script>
<![CDATA[
public var value:uint;
]]>
</mx:Script>
<mx:CheckBox id="checkbox" selected="{Boolean(data.isSelected)}"
horizontalCenter="0" verticalCenter="0"/>
<mx:Binding source="checkbox.selected" destination="value"/>
</mx:Canvas>

</mx:Component>

....for the DataGridColumn....

<mx:DataGridColumn dataField="isSelected" rendererIsEditor="true"
editorDataField="value" textAlign="center"
itemRenderer="{inlineEditor}"/>

....the selected checkboxes are not selected if a scroll through the
dataGrid. Has anyone had this problem and solved it?

Precia

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to