I know that if you want to communicate with the main application from
within the itemRenderer component, you have to use "outerDocument"
first...Example:

<mx: DataGridColumn dataField="field" headerText="col1"
editorDataField="text" editable="true">

<mx: itemRenderer>
<mx: Component>
<mx:ComboBox dataProvider="{outerDocument.myXml.info}"
change="myMethod(dg.instanceIndex)" id="cbItemRenderer"/>
</mx: Component>
</mx: itemRenderer>

</mx: DataGridColumn>


My question is:
---How do you communicate with an itemRenderer from within the main
application? It seems like the main app does not have scope to the
itemRenderer, because when I add an id attribute to the <mx:ComboBox>
tag, I cannot refer to it...Example:

cbItemRenderer.getSelectedItem().label)


Thanks

Reply via email to