I had a similar problem where I was showing tooltips on dynamically created
radio buttons, but didn't want to show the tool tip if the radio button was
disabled, so I did the following.

1.  On creation of the radio button, setup an empty tooltip...this was also
necessary so I could do the custom tooltips I needed:

radioBtn.toolTip = " ";

2.  Then I put an event listener for TOOL_TIP_START on each radio button and
call a function:

radioBtn.addEventListener(ToolTipEvent.TOOL_TIP_START,killToolTip);

3.  I then check to see if the radio button is enabled.  If not, set the
tooltip to null:

public function killToolTip(event:ToolTipEvent):void {
     if(!event.currentTarget.enabled) {
          event.currentTarget.toolTip = null;
     }
 }

...and now no tooltip displays.  If the radio button is enabled, Flex moves
on to my other listener and creates the custom tooltip:

radioBtn.addEventListener(ToolTipEvent.TOOL_TIP_CREATE,handleLabelRoll);

Hope this helps,
D




whatabrain wrote:
> 
> I have a column defined like this:
> 
> <mx:AdvancedDataGridColumn dataField="dataName" showDataTips="true" 
> dataTipField="tipData" headerText="myText/>
> 
> 
> When the grid renders, the header is correctly labeled "myText," and 
> the items under the header have their proper tooltips that 
> reference "tipData." However, the header also has a tooltip. When I 
> hover over it, I see "myText."
> 
> Is there any way to turn that useless tooltip off for the header, while 
> keeping tips for the actual data?
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/showDataTips-on-AdvancedDataGrid-column-gives-tooltip-to-column-header-tp19522939p20096885.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to