Are you sure genreList is an array or ArrayCollection?  Is the model bindable?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of emarionjacobs
Sent: Tuesday, December 15, 2009 4:26 PM
To: [email protected]
Subject: [flexcoders] Combobox in Datagrid appears empty



I have a simple Combobox defined as the itemEditor for a DataGrid as shown 
below. The ArrayCollection that is its DataProvider is populated from 
creationComplete of the parent Canvas - and I can see the data going in via the 
debugger. However, when I insert a row into the datagrid under the 
circumstances that make the column editable and actually click on that column, 
I only see an empty row popping up under the combobox, never any data. Can 
anyone shed any light on what's missing here?

<mx:DataGridColumn
dataField="Genre"
editable="{chartTrackListGrid.selectedItem.TrackCode == null}">
<mx:itemEditor>
<mx:Component>
<mx:ComboBox
dataProvider="{parentDocument.model.genreList}"
labelField="Name" />
</mx:Component>
</mx:itemEditor>
</mx:DataGridColumn>

Reply via email to