I am using a "add"button above the data grid in my plugin and on click of the add button,i am showing a popup
as a title window.I i have to explicitly pass the context to the title window.Could you please let me know how to use the pop ups for the buttons and pass the contextobject
My code:
public function onNetworkClick(data:Object):void {
var win:NetworkDetailsView = PopUpManager.createPopUp(this, NetworkDetailsView, true) as NetworkDetailsView;
win._contextObject = this._contextObject;
PopUpManager.centerPopUp(win);
}
<mx:AdvancedDataGridColumn headerText="Network Name" dataField="url" width="200">
<mx:itemRenderer>
<mx:Component>
<mx:Label text="{data.name}"
textDecoration="underline"
color="0x336699"
buttonMode="false"
useHandCursor="true"
mouseChildren="false"
click="outerDocument.onNetworkClick(this.data)"/>
</mx:Component>
</mx:itemRenderer>
</mx:AdvancedDataGridColumn>
Please point me to any example where i can directly use which has the same usecase of providing buttons on datagrid and popping up dialogs?
Marianne
↧
Please suggest a way to show popups without explicitly pushing a context object for it
↧