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

Button inside the RadToolTipManager

1 Answer 92 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Mritunjay
Top achievements
Rank 1
Mritunjay asked on 24 Mar 2009, 02:20 PM
Hi,
I am displaying on of my user control as a popup in RadToolTipManager. I have close button to close the RadToolTipManager from javascript. I am calling one java script function to hide the RadToolTipManager.

<

asp:Button ID="btnClose" CssClass="cmb_btnG" Text="<%$ CmbResources:eBAM,LEList_btnClose %>"

 

 

runat="server" OnClientClick="HideToolTip();" />

 



function

HideToolTip()

 

{

 

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

 

 

 

if (tooltip)

 

{

tooltip.hide();

}

}



When I am clicking on the Close button it is also executing OnAjaxUpdate method of code behind.
I don't want to call OnAjaxUpdate method on click of my close button.

 

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 30 Mar 2009, 07:22 AM
Hi Mritunjay,

As far as I understand form your explanations, you want to prevent the button from performing an ajax request. If so, you should return false in the OnClientClick definition as shown below:

<asp:Button ID="btnClose" CssClass="cmb_btnG" Text="<%$ CmbResources:eBAM,LEList_btnClose %>"   
runat="server" OnClientClick="HideToolTip();return false;" /> 
 


Regards,
Svetlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
Mritunjay
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or