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:[EMAIL PROTECTED] On
Behalf Of Omar Fouad
Sent: Thursday, February 28, 2008 7:57 PM
To: [email protected]
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> 

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