I tried that, and indeed it will help align the checkbox, unfortunately the data binding stops working. In other words, the moment you have an hbox around the checkbox, the checkbox does not show as “checked” in those rows that have “true” as data value.

Hi,
You can use HBox component or anoother layout compnent to say, inside
the itemRenderer like

<mx:DataGridColumn width="65" headerText="Member" dataField="member"
textAlign="center" >
<mx:itemRenderer>
<mx:Component>
<HBox>
<mx:CheckBox labelPlacement="left"/>
</HBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>

thanks.

--- In [EMAIL PROTECTED]ups.com, "iko_knyphausen" <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I am trying to use checkboxes in my datagrid, and everything works
fine,
> except I cannot vertically align the "bugger". I played with
>
> textAlign=""
> horizontalCenter =""
> paddingLeft =""
> left=""
> etc.
>
> all the usual style candidates. The only thing that will make a
> difference, is the labelPlacement attrribute. The values "top" and
> "bottom" will center the checkbox nicely, unfortunately they will
also
> add space for the label (either above or below) even if the label
> attribute is empty.
>
> See code below. Help is greatly appreciated... Thx
>
> <mx:DataGridColumn width="65" headerText="Member" dataField="member"
> textAlign="center" >
> <mx:itemRenderer>
> <mx:Component>
> <mx:CheckBox labelPlacement="left"/>
> </mx:Component>
> </mx:itemRenderer>
> </mx:DataGridColumn>
>

__._,_.___

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