Listen to renderer not control

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of tungchau81
Sent: Wednesday, December 05, 2007 5:42 PM
To: [email protected]
Subject: [flexcoders] Re: dataTipFunction position in datagrid

 

Hi Alex,
I tried to listen to the "tooltipshow" event in AdvancedDataGrid(Flex 
3), but I was not able to catch the event at all.

private function changeToolTipPosition(event:ToolTipEvent):void {
trace("TungChau::x=" + ToolTipManager.currentToolTip.x);
trace("TungChau::y=" + ToolTipManager.currentToolTip.y);
trace("TungChau::y1=" + ToolTipManager.currentTarget.y);
}

<controls:AdvancedDataGrid id="reportTable" 
groupIconFunction="reportArchiveGroupingIcon" 
groupLabelFunction="reportArchiveGroupingLabel"
dataTipFunction="generateReportDataTip" 
initialize="myGroupingCollection.refresh()" 
toolTipShow="changeToolTipPosition(event)" 
width="100%" height="100%">
...
</controls:AdvancedDataGrid>

When debugging the problem, I set a breakpoint 
inside "changeToolTipPosition" function and I was never able to reach 
the breakpoint. My AdvancedDataGrid has grouping by default.

Regards,
Tung Chau

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Try tooltipshow in a custom renderer
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>

[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of hammer995
> Sent: Thursday, October 18, 2007 8:19 AM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] dataTipFunction position in datagrid
> 
> 
> 
> I have the following:
> 
> <mx:DataGridColumn headerText="Acct" dataField="acct" width="50"
> showDataTips="true" dataTipFunction="fullAcctName"/>
> 
> The fullAcctName returns a string.
> 
> Unfortunately, the string is displayed right over the cell you are
> hovering over to get the tooltip. Is there a way to give it an 
offset
> so it doesn't block the cell?
> 
> Thanks!
>

 

Reply via email to