I want to use a ComboBox as an itemRenderer and itemEditor.

here is the 

<mx:DataGridColumn headerText="Route" dataField="med_route_oidCol"
        editable="true" editorDataField="text" rendererIsEditor="true">
        <mx:itemRenderer>
                <mx:Component>
                        <mx:ComboBox editable="true" labelField="label" >
                                <mx:ArrayCollection>
                                         <mx:Object label="IV" text="101"/>
                                         <mx:Object label="DRIP" text="102"/>
                                         <mx:Object label="BOLUS" text="103"/>
                              </mx:ArrayCollection>
                        </mx:ComboBox>
                </mx:Component>
        </mx:itemRenderer>
</mx:DataGridColumn>

I am using the dataGrid.addEventListener(DataGridEvent.ITEM_EDIT_END,
editCellEnd);

to extract the text value on the selectedItem to store in the db with 

e.currentTarget.itemEditorInstance.selectedItem.text

But on display the value saved to the db is one of the text values above,
but the itemRenderer combobox doesn't display the associated label.

What am I missing?




-- 
View this message in context: 
http://www.nabble.com/itemRenderer-ComboBox-tp21243094p21243094.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to