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], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Each renderer should get the event.
>
>
>
> ________________________________
>
> From: [email protected]
[mailto:[EMAIL PROTECTED] On
> Behalf Of djbrown_rotonews
> Sent: Wednesday, May 21, 2008 5:47 AM
> To: [email protected]
> 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>
> , "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:[email protected] <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of djbrown_rotonews
> > Sent: Monday, May 19, 2008 1:20 PM
> > To: [email protected] <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?
> >
>