thanks for the input guys. But i have one issue.
In your example Tim, your checkbox item renderer is binding onto
the 'followUp' property of the dataProvider.
eg
<mx:CheckBox id="cbFollowUp" selected="{data.followUp}"/>
'followUp' is the name of your dgcolumn dataField. So wouldn't it be
better and more generic if you could do
<mx:CheckBox id="cbFollowUp" selected="{data.dataField}"/>
i'm applying this renderer across many datagrids and the dataField
name isn't the same.
regards
Bod
--- In [email protected], "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
>
> In addition to Ben's example for the label, here's a sample for the
> selected value:
>
> http://www.cflex.net/showfiledetails.cfm?
ChannelID=1&Object=File&objectI\
> D=443
> <http://www.cflex.net/showfiledetails.cfm?
ChannelID=1&Object=File&object\
> ID=443>
>
> -TH
>
> --- In [email protected], "ben.clinkinbeard"
> <ben.clinkinbeard@> wrote:
> >
> > <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"
> > horizontalAlign="center"
> >
> > <mx:CheckBox id="checkbox1" label="data.myLabelField" />
> >
> > </mx:HBox>
> >
> > --- In [email protected], "bhaq1972" mbhaque@ wrote:
> > >
> > > i have a checkbox renderer like this.
> > >
> > > <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"
> > > horizontalAlign="center"
> > >
> > > <mx:CheckBox id="checkbox1"/>
> > >
> > > </mx:HBox>
> > >
> > > How do i get access to the DataGridColumn its being referenced
in ie
> > >
> > > <mx:DataGridColumn dataField="col1"
itemRenderer="myCheckBox" />
> > >
> > > i want to access the dataField.
> > >
> > >
> > > regards
> > > Bod
> > >
> >
>
--
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/
<*> 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/