Dispatch an event from the DeleteRenderer when it's done.
Listen for the event in the parent (or whatever controls the datagrid) and 
refresh the datagrid from there.

regards,
Muzak

----- Original Message ----- 
From: "Jon Kong" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, August 15, 2006 4:46 PM
Subject: [Flashcoders] Flex 2 - what is the equivalent of _parent for flex 
2(application scope question)


> I'm having problems trying to call a refresh data grid function from outside
> the parent page.  For example i have a main mxml called
> FlexGradeBook.mxmlthat has the datagrid and everything set up.  Then i
> have another mxml
> called DeleteRenderer.mxml that is used for an item renderer button in a
> column of the datagrid (datagrid that's in FlexGradeBook.mxml).  When i
> click the button on the datagrid, it calls a mouse event function in the
> DeleteRenderer.mxml and after it does what it needs to do, i want to call
> the refresh datagrid function that is in the FlexGradeBook.mxml page but
> DeleteRenderer.mxml can not access anything in the main page...thus the main
> page is out of scope within the DeleteRenderer.mxml.  So the deletion of the
> row in the datagrid works but the datagrid does not refresh since i can't
> call that function b/c it is out of scope.  Any help will be appreciated.
> Thanks
>
> Jon


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to