Is there [Bindable] before var genreList:ArrayCollection? Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of emarionjacobs Sent: Wednesday, December 16, 2009 3:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Combobox in Datagrid appears empty Yes, genreList is declared as an ArrayCollection in the model, and the model is declared as Bindable in the parent document for the datagrid. --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, Alex Harui <aha...@...> wrote: > > 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: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On > Behalf Of emarionjacobs > Sent: Tuesday, December 15, 2009 4:26 PM > To: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> > 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> >