My take on how to do this is at:
http://blogs.adobe.com/aharui/2008/02/checkbox_selection_in_datagrid.htm
l

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of danielggold
Sent: Friday, February 29, 2008 12:09 PM
To: [email protected]
Subject: [flexcoders] Re: Selecting Data grid rows with Check boxes,

 

This is one of the first custom components I needed. I recently posted
a solution to this, but it is by no means a perfect implementation.
Code and samples are posted at

http://www.thegoldhold.com <http://www.thegoldhold.com> 
--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I am not much of a component developer, so hopefully someone else will
> have some better ideas, but, this might be a little difficult.
> 
> 
> 
> You essentially want to override the entire selection functionality of
> the datagrid, if selection is to be controlled only by the checkbox.
> For instance, you don't want a row selected if someone clicks on a
> different column, which is the DG normal behavior.
> 
> 
> 
> Do you need the full datagrid functionality? Resizable columns and the
> like? If not and you just wanted a tabular display, consider doing
this
> from scratch, probably with Repeater with a custom component in a
Vbox.
> That would be pretty simple. Sorting would not be difficult. If you do
> need the full DG functionality, I suspect you will need to extend DG.
> 
> 
> 
> Good luck.
> 
> 
> 
> Tracy
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Omar Fouad
> Sent: Thursday, February 28, 2008 7:57 PM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Selecting Data grid rows with Check boxes,
> 
> 
> 
> List,
> I got a DataGrid component that shows data from a database.
> 
> I have added a column with a checkbox for each row:
> 
> <mx:DataGridColumn textAlign="center" width="30">
> <mx:itemRenderer>
> <mx:Component>
> <mx:CheckBox />
> </mx:Component>
> </mx:itemRenderer>
> </mx:DataGridColumn>
> [other DataGridColums...]
> 
> I need to select the rows by checking on it corresponding checkbox,
the
> same way I select rows by pressing ctrl + click.
> 
> 
> Thanks so much,
> 
> 
> 
> -- 
> Omar M. Fouad - Digital Emotions 
> http://www.omarfouad.net <http://www.omarfouad.net>
<http://www.omarfouad.net <http://www.omarfouad.net> > 
> 
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be
> copied, disclosed to, retained or used by, any other party. If you are
> not an intended recipient then please promptly delete this e-mail and
> any attachment and all copies and inform the sender. Thank you.
>

 

Reply via email to