[flexcoders] Re: Using custom checkBox in datagrid

2007-10-31 Thread candysmate
--- In flexcoders@yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote: Dispatch a custom event with bubbles set to true. In the event include the checkbox that was checked so the code that catches it can get the selected state. Then in the code that sets up your datagrid add an event

[flexcoders] Re: Using custom checkBox in datagrid

2007-10-31 Thread ben.clinkinbeard
You don't need a custom event as MouseEvent.CLICK already bubbles. Simply listen for that event and then check if(event.target is CenteredCheckBox). HTH, Ben --- In flexcoders@yahoogroups.com, candysmate [EMAIL PROTECTED] wrote: I'm using a custom itemRenderer (centered checkBox), based upon

[flexcoders] Re: Using custom checkBox in datagrid

2007-10-31 Thread candysmate
--- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: You don't need a custom event as MouseEvent.CLICK already bubbles. Simply listen for that event and then check if(event.target is CenteredCheckBox). HTH, Ben Much cleaner. Many thanks for your input Ben.