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

RadToolTip and ManualClose property

1 Answer 80 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
PPSDevs
Top achievements
Rank 1
PPSDevs asked on 05 Nov 2009, 05:41 PM
I am using RadToolTip in my application to show the help. I have set the property "ManualClose" to TRUE, but I want to display the text right beside the close button, so that when user clicks either text or the button, tooltip gets closed. How can I put the text "Close" beside close button and code it so that desired functionality is achieved.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 06 Nov 2009, 10:50 AM
Hello Manjeet,

You can try with the following setup:

<telerik:RadToolTip ID="RadToolTip1" runat="server" RelativeTo="Element" TargetControlID="Button1"
    ShowEvent="OnMouseOver" Width="100px" Height="20px" Position="MiddleRight" HideEvent="ManualClose">
    <asp:Label ID="lbl1" runat="server" Text="Click me" onclick="hideTooltip()"></asp:Label>
</telerik:RadToolTip>
<asp:Button ID="Button1" runat="server" Text="Hover me" />
 
<script type="text/javascript">
    function hideTooltip()
    {
        var tooltip = $find("<%= RadToolTip1.ClientID %>");
        tooltip.hide();
    }
</script>


I hope this helps.


Sincerely yours,
Georgi Tunev
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
PPSDevs
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or