我有一个datagrid,里面有一个组合框,比如;
<mx:DataGrid editable="true" x="72" y="10" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllResult.lastResult}" height="178" width="896">
<mx:columns>
<mx:DataGridColumn headerText="STATUS" dataField="tooltip"/>
<mx:DataGridColumn headerText="CUSTOM" editable="false" width="250" labelFunction="meAdnan" >
<mx:itemRenderer>
<fx:Component className="myEditor2">
<mx:VBox height="100%" >
<mx:ComboBox id="pickState" labelField="attname"
dataProvider="{parentApplication.getAllResult2.lastResult}"
>
</mx:ComboBox>
</mx:VBox>
</fx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
现在,当我想从itemrended/组合框中访问一个函数时
parentApplication.funcName
但是另一种访问方式呢,如何从itemrenderer外部访问combobox的属性?我试过了
myEditor2.pickState
但它现在起作用了