it compiles when using Label as the component, but it doesn't
compile when using DataGridItemRenderer (cannot resolve attribute
toolTipCreate. Should I use DGIR, but use a different event since
toolTipCreate isn't exposed?
<mx:DataGridColumn headerText="PNR" dataField="pnrLocator">
<mx:itemRenderer
<mx:Component>
<mx:DataGridItemRenderer text="{data.pnrLocator}"
toolTipCreate="outerDocument.createPNRToolTip(event)"/
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> In the future, please send code that compiles.
>
>
>
> I'd forgotten that dataTip functionality is in the renderer and
not the
> DG. If you look at DataGridItemRenderer it has its own dataTip
code.
> Label doesn't which is why it isn't set up to get the tooltip
events.
> I'd probably copy code from DGIR to a subclass of Label.
>
>
>
> ________________________________
>
> From: [email protected]
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Tuesday, May 27, 2008 5:44 AM
> To: [email protected]
> Subject: [flexcoders] Re: dataTipRenderer available for DataGrid?
>
>
>
> bump
>
> --- In [email protected] <mailto:flexcoders%
40yahoogroups.com>
> , "Alex Harui" <aharui@> wrote:
> >
> > Busy week. I'll try to take a look next week maybe.
> >
> >
> >
> > ________________________________
> >
> > From: [email protected] <mailto:flexcoders%
40yahoogroups.com>
>
> [mailto:[email protected] <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of djbrown_rotonews
> > Sent: Thursday, May 22, 2008 6:49 AM
> > To: [email protected] <mailto:flexcoders%
40yahoogroups.com>
> > Subject: [flexcoders] Re: dataTipRenderer available for DataGrid?
> >
> >
> >
> > what am I missing then? My code never gets to the the
> > createPNRToolTip function referenced in the toolTipCreate event
> > handler. I messed around with the showDataTips property on the
> grid
> > itself, and it didn't change the behavior.
> >
> > <mx:DataGrid width="100%" height="100%"
> > dataProvider="{pnrsToProcess}">
> > <mx:columns>
> > <mx:DataGridColumn headerText="PNR" dataField="pnrLocator">
> > <mx:itemRenderer>
> > <mx:Component>
> > <mx:Label text="{data.pnrLocator}"
> > toolTipCreate="outerDocument.createPNRToolTip(event)"/>
> > </mx:Component>
> > </mx:itemRenderer>
> > </mx:columns>
> > </mx:DataGrid>
> >
> > public function createPNRToolTip(event:ToolTipEvent):void {
> >
> > }
> > --- In [email protected]
> <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> 40yahoogroups.com>
> > , "Alex Harui" <aharui@> wrote:
> > >
> > > Each renderer should get the event.
> > >
> > >
> > >
> > > ________________________________
> > >
> > > From: [email protected]
> <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> 40yahoogroups.com>
> >
> > [mailto:[email protected]
> <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> 40yahoogroups.com>
> > ] On
> > > Behalf Of djbrown_rotonews
> > > Sent: Wednesday, May 21, 2008 5:47 AM
> > > To: [email protected] <mailto:flexcoders%
40yahoogroups.com>
> <mailto:flexcoders%
> 40yahoogroups.com>
> > > Subject: [flexcoders] Re: dataTipRenderer available for
DataGrid?
> > >
> > >
> > >
> > > I see where there's a ToolTipCreate event available, and I've
> used
> > > that in the past for custom tool tips over TextAreas etc.. I
see
> > the
> > > same event exposed for the DataGrid itself, but it doesn't
> appear
> > to
> > > exist for the individual columns. How would I handle the
> situation
> > > where I wanted to display a custom tool tip depending on what
> > column
> > > was being moused over?
> > >
> > > --- In [email protected]
> <mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > 40yahoogroups.com>
> > > , "Alex Harui" <aharui@> wrote:
> > > >
> > > > There's a ToolTipEvent that you should be able to pick up
and
> > > return an
> > > > instance of a custom class to use as a tooltip
> > > >
> > > > ________________________________
> > > >
> > > > From: [email protected]
> <mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > 40yahoogroups.com>
> > >
> > > [mailto:[email protected]
> <mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > 40yahoogroups.com>
> > > ] On
> > > > Behalf Of djbrown_rotonews
> > > > Sent: Monday, May 19, 2008 1:20 PM
> > > > To: [email protected]
> <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> 40yahoogroups.com>
> > <mailto:flexcoders%
> > 40yahoogroups.com>
> > > > Subject: [flexcoders] dataTipRenderer available for DataGrid?
> > > >
> > > >
> > > >
> > > > How do I need to extend DataGrid to get the dataTipRenderer
> > stuff
> > > > exposed similiar to the charting classes?
> > > >
> > >
> >
>