You would have to register manualy using addEventListener. You could do this on your tag <mx:DataGrid id="grd" load="grd.addEventListner("MyEvent",MyMethod);" .. />

 

 



 
On 9/16/05, Allen Manning <[EMAIL PROTECTED]> wrote:

Omar,

 

Thanks for the reply.

 

Would I need to register that event with my list, won't the complier complain of I do this:

 

<mx:DataGrid MyEvent="do something" .. />

 

Or do I need to add the event listener programmatically?

 

Thanks,

Allen

www.prismix.com/

 

 


From: [email protected] [mailto: [email protected]] On Behalf Of Omar Ramos
Sent: 16 September 2005 13:59
To: [email protected]
Subject: Re: [flexcoders] Capturing Events from Cell Renderers

 

Hi Allen,

 

I usualy do what you say on my cell renders. What I usualy do is dispatch the event tru your list controll, in your case the dataGrid. Remember on the cell render you have a reference of the list which is the variable listOwner. So you could do this listOwner.dispatchEvent({type:"MyEvent",data:"MyData"}); Hope it helps!

 

 

Omar Ramos

System Developer

 

On 9/16/05, Allen Manning < [EMAIL PROTECTED]> wrote:

Hello,

 

I want to dispatch and event from a cell renderer and call it in the view which has the parent datagrid.  Any advice on how to do this?  I don't need code, just a brief explanation would do.  J

 

Many thanks,

Allen

www.prismix.com/

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



SPONSORED LINKS

Web site design development

Software design and development

Macromedia flex

Software development best practice

 

 

 


YAHOO! GROUPS LINKS

 

 


 

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005


YAHOO! GROUPS LINKS




--
No virus found in this incoming message.

Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.24/101 - Release Date: 13/09/2005




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to