I was having this exact problem (with a ComboBox in a DataGrid not updating after an HTTP service returned), and handling dataChange *finally* fixed it.
My now working code is:
<mx:DataGridColumn
headerText="Project"
dataField="project_id"
width="150"
editable="false"
sortable="false">
<mx:itemRenderer>
<mx:Component>
<mx:ComboBox
width="200"
labelField="name"
dataProvider="{outerDocument.projectsAndNone}"
selectedItem="{outerDocument.getProject(data.project_id)}"
dataChange="updateSelectedItem()"
change="outerDocument.updateTaskProject(XML(data), XML(selectedItem))">
<mx:Script>
<![CDATA[
import com.pomodo.util.DebugUtils;
private function updateSelectedItem():void {
DebugUtils.debug("updateSelectedItem, data = "" + data);
if (data != null) {
selectedItem = outerDocument.getProject(data.project_id);
}
}
]]>
</mx:Script>
</mx:ComboBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
Thanks again!
Peter Armstrong
--
Peter Armstrong
http://www.flexiblerails.com -- Flex 2 and Rails 1.1 together! (PDF-only book) __._,_.___
--
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
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
__,_._,___

