This is a migrated thread and some comments may be shown as answers.

Closing tooltip on click of a Cancel button

1 Answer 96 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 29 Jun 2009, 08:34 AM
Hi,

I am having a user control which contains two buttons  SAVE & CANCEL and I am using that user control as radTooltip and this tooltip opens on a button click.
Here i want to close the tooltip on SAVE button click (after performing some operations) and on Cancel button click?
How to do this?



Thanks,

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 29 Jun 2009, 03:21 PM
Hi Ram,

In order to hide the currently active tooltip, you should reference it and call its hide() method, e.g as shown below:

 function CloseActiveToolTip()  
        {   
            var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();  
            if (tooltip) tooltip.hide();  
        }  
          
 



Best wishes,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolTip
Asked by
Ram
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or