Hi Jack,

Placing the CheckBox in a VBox or HBox shouldn't affect the data object.  Here is an example:

http://www.cflex.net/showFileDetails.cfm?ObjectID=443&Object=File&ChannelID=1 

However, if you just want to adjust the positioning of the CheckBox, you can use paddingLeft in the DataGridColumn tag, to move it to the center.

-TH

--- In [email protected], "Jack OMelia" <[EMAIL PROTECTED]> wrote:
>
> 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
>

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to