Flex – Calling the parent function from ItemRenderer

I want to call a parent function named “edit_groups()” from itemRenderer.
The code of my itemRenderer is:

 dropShadowEnabled="true" width=" 100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" >

complete=" {image_smoothing_handler(event);}" trustContent="true" doubleClick="{CALL THE PARENT FUNCTION "edit_groups()"}"/>

I call my itemRenderer from an application:

list_groups_modify.itemRenderer=new ClassFactory(groups.list_groups_modify_item_renderer);

Greetings
Zeeshan

try this ,Use parentDocument:

 dropShadowEnabled="true" width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" >

complete="{image_smoothing_handler(event);}" trustContent="true" doubleClick="parentDocument.edit_groups()"/>

I want to call the parent function named “edit_groups()” from itemRenderer.
The code of my itemRenderer Yes:

 dropShadowEnabled="true" width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" >

complete="{image_smoothing_handler(event);}" trustContent="true" doubleClick="{CALL THE PARENT FUNCTION "edit_groups()"}"/>

I call my itemRenderer from an application:

list_groups_modify.itemRenderer=new ClassFactory(groups.list_groups_modify_item_renderer) ;

Regards
Zeeshan

Try this, using parentDocument:

 dropShadowEnabled="true" wi dth="100%" height="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off" >

complete="{image_smoothing_handler(event);}" trustContent="true" doubleClick="parentDocument.edit_groups()"/>

Leave a Comment

Your email address will not be published.