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

closing tooltip server-side

1 Answer 208 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
dhlennon
Top achievements
Rank 1
dhlennon asked on 18 Apr 2008, 11:57 AM
Is it possible to close a modal tooltip from server-side (using RegisterClientScriptBlock I guess) in VB?

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 25 Apr 2008, 09:31 AM
Hello David,

Yes, it is possible to close the opened tooltip through executing script server-side.

In order to do this I suggest you add the following javascript function in your aspx page:

 function CloseActiveToolTip()  
        {   
            setTimeout(function(){   
                var controller = Telerik.Web.UI.RadToolTipController.getInstance();  
                var tooltip = controller.get_activeToolTip();  
                if (tooltip) tooltip.hide();  
            }, 1000); 

Then, you can execute it server-side by using the following code line in the cs file:

ClientScript.RegisterStartupScript([GetType](), "closeActiveTip"" CloseActiveToolTip();")  
 

Please, note that depending on your scenario it may be necessary to use the ScriptManager's ResponseScripts collection and add the script in an analogous manner.


Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
dhlennon
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or