Thanks to all who replied. I'm sorry I'm only getting back now, but I
was away on business for a few days. 

I was able to put the checkbox in a VBox in the itemRenderer (and
center it), but I lost any selected checks in the data because I only
had a reference to the data in the dataprovider. Once I put the
checkbox in the VBox, I added "selected ={data.cdrBusinessCall}" to
the checkbox and that worked for me.

Thanks again for the help.

Jack

--- In flexcoders@yahoogroups.com, "Shannon Hicks" <[EMAIL PROTECTED]> wrote:
>
> Jack, check out this thread:
>  
> HYPERLINK
>
"http://www.mail-archive.com/flexcoders@yahoogroups.com/msg34180.html"http:/
> /www.mail-archive.com/flexcoders@yahoogroups.com/msg34180.html
>  
> It's pretty much along the same lines as what you want, but with the
extra
> code to handle 1 or 0 instead of selected. You can probably modify
that to
> accept the words "true" and "false" instead.
>  
> Shan
>  
> 
> 
>    _____  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Jack OMelia
> Sent: Thursday, September 07, 2006 1:47 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Centering a checbox in a datagrid column
> 
> 
> 
> Hi All,
> 
> I'm new to Flex and having a blast learning it but every now and then
> I run into small things that make me scratch my head.
> 
> I have a column in a datagrid that uses an itemRenderer to fill the
> cells with checkboxes. The checkboxes are flush left against the wall
> of the cell. In searching your threads, it seems most of you position
> the checkbox by wrapping the checkbox in another component, usuaully
> an HBox or VBox, in the itemRenderer.
> 
> That worked for me except that I lose the selected property for each
> row. The datagrid is populated with data from an XML file, and the
> first attribute for each node is either true or false, which then sets
> the checkbox as checked or not. Once I add aVBox or HBox to my
> itemRenderer, I lose this and none of the checkboxes are checked. It
> would seem a custom script is needed to ensure the checkboxes are
checked.
> 
> All I want to do is center my checkboxes. There must be a simple way
> of doing this without writing another 50 to 100 lines of code. Am I
> missing something?
> 
> Thanks,
> Jack
> 
> 
> 
>  
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 9/6/2006
> 
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 9/6/2006
>






--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to