Skip to main content
May 30, 2014
Question

How to get the handle of the Advancegrid which is in parent mxml from innermost child .child file has no direct interaction with parent file

  • May 30, 2014
  • 0 replies
  • 342 views

Hi Guys,

I want to refresh the AdvanceGrid present in one MXML so want the handle of it from one of the chile file , the child file has no direct interaction with parent file , in such case how to get handle of it...

In one mxml I have a AdvancedDatagrid with in the Itemrenderer property of it ,I am calling one GridCloumnItemrenderer.as .., I am able to refersh the advancedgrid inside the GridCloumnItemrenderer.as by getting the handle of it.

But My problem is inside the GridCloumnItemrenderer.as I have one more popup.as inside this popup.as I am having the instance of one more cloneconfig.as NOw from the cloneconfig.as inside this I am calling the clone event so in the callback function of this I have to get the handle of the ADVANCEGRID  how can I get the handle of the AdvancedataGrid inside this cloneconfig.as

Can any body please help me in it.

config.mxml

<mx:AdvancedDataGridColumn dataField="actions" headerText="{getString('label.actions')}" width="70"

                                       itemRenderer="com.ci.wmc.manageappliances.renderers.GridCloumnItemrender>

                                      

GridCloumnItemrenderer.as has following:

Popups.getInstance().launch(DisplayObject(parentDocument),

                        Popups.StManageAppliancesCreateCloneConfig);

                       

Popups.as has

instance.map[StManageAppliancesCreateCloneConfig] =CreateCloneConfig;

CreateCloneConfig.as has

    new ManageCloneConfigEvent(

                    hostname,

                    vo.nodeProject,

                    vo.nodeVersion,

                    vo.nodeConfig,

                    name,

                    clonedConfig).dispatch();

                   

I want the handle of AdvanceGrid inside the CreateCloneConfig.as ,I want to refresh the AdvanceGrid on the call back of the Event so

I tried (this.owner) it did not work giving some canvas as result.

This topic has been closed for replies.