Iam just wondering How a Layout component has some affect on data?. It works for me.. selected = {data.ColumnDataField} shoue populate the value.
--- In flexcoders@yahoogroups.com, "Iko Knyphausen" <[EMAIL PROTECTED]> wrote: > > 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] <mailto:flexcoders%40yahoogroups.com> ups.com, > "iko_knyphausen" <iko@> 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 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/