Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Please suggest a way to show popups without explicitly pushing a context object for it

$
0
0


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


 


 


 

 public function onNetworkClick(data:Object):void



          {



              var win:NetworkDetailsView = PopUpManager.createPopUp(this, NetworkDetailsView, true) as NetworkDetailsView;



              win._contextObject = this._contextObject;



              win.vtsNteworks = this.vtsNetworks;



              win.networkName= data.name;



              Alert.show(win._contextObject +"context");



              Alert.show(data.name+"name");



              PopUpManager.centerPopUp(win);



          }



Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>