I am pretty sure this is a bug. Every time a checkbox is selected the other one gets reset. The only conclusion I have reached is I am using a  XMLListCollection as a dataProvider.

Any help would be welcome.

PS. My actual code is more complicated than below!!

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml" backgroundAlpha="0">

 <mx:HTTPService id="myfileCheckBoxResultsHS" url="" useProxy="false" resultFormat="e4x"/>
 <mx:XMLListCollection id="myXMLListCollection" source="{myfileCheckBoxResultsHS.lastResult.ePatrolSearchPage.ePatrolSearchDetail}"/>  

 <mx:DataGrid width="800%" height="600%" dataProvider="{myXMLListCollection}" initialize="myfileCheckBoxResultsHS.send()" editable="true">
    <mx:columns>
          <mx:DataGridColumn dataField="Selected" itemRenderer="mx.controls.CheckBox" rendererIsEditor="true" editorDataField="selected" editable="true"/>
    </mx:columns>
 </mx:DataGrid>    

</mx:Application>

XML FILE ------------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="iso-8859-1"?>

<GraydonUKePatrolSchema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.graydon.co.uk/GraydonXMLSchema/xsd/GraydonUKePatrolSchema.xsd">

<ePatrolSearchPage Type="File Changes" Setup="Full">

<ePatrolSearchDetail ItemNo="1">

<Selected>false</Selected>

</ePatrolSearchDetail>

<ePatrolSearchDetail ItemNo="2">

<Selected>false</Selected>

</ePatrolSearchDetail>

<ePatrolSearchDetail ItemNo="3">

<Selected>false</Selected>

</ePatrolSearchDetail>

</ePatrolSearchPage>

</GraydonUKePatrolSchema>

 

__._,_.___

--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to