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

how to hide tooltip server side

3 Answers 194 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Gina
Top achievements
Rank 1
Gina asked on 11 Sep 2009, 07:49 PM
I am tring to hide a tooltip on the server side but i am lost... Can someone help me. here is the Javascript i have and the tooltip.

 

function HideTooltip() {

var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();

if (tooltip) tooltip.hide();

}

 

<telerik:RadToolTip runat="server" ID="rttLnameCk" ShowCallout="false" Position="MiddleRight"

RelativeTo="Element">

<asp:CheckBoxList ID="cblLastName" runat="server" CellSpacing="0" CellPadding="0">

</asp:CheckBoxList>

<asp:Button ID="btSelect" runat="server" Text="Select" OnClientClick="InsertName(); return false;" />

</telerik:RadToolTip>

 

 thank you for all your help

 

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Sep 2009, 05:37 AM
Hi Gina,

Here is the forum link which discusses how to close the tooltip from code behind.
Closing tooltip server-side

-Shinu.
0
Gina
Top achievements
Rank 1
answered on 14 Sep 2009, 04:34 PM
would it be the same for C# ?  I get syntax errors  for ([GetType](), "rttName", " CloseActiveToolTip();")

is this correct on what i need in the back end to close the tooltip ?
ClientScript.RegisterStartupScript([GetType](),

"rttName", " CloseActiveToolTip();")

 

0
Svetlina Anati
Telerik team
answered on 16 Sep 2009, 08:51 AM
Hello Gina,

As far as I see from your code the problem comes from the manner you have taking the type - this is teh way you do it in VB and in C# it should be:

ClientScript.RegisterStartupScript( this.GetType(), "rttName", " CloseActiveToolTip();")

 You can find more information about executing script from the server in the blogpost below:

http://blogs.telerik.com/blogs/posts/09-05-05/executing_javascript_function_from_server-side_code.aspx



Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ToolTip
Asked by
Gina
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Gina
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or