How to set a tooltip to radwindow from java Script

2 posts, 0 answers
  1. Sabrina Schubert
    Sabrina Schubert avatar
    5 posts
    Member since:
    May 2010

    Posted 01 Jun 2010 Link to this post


    My requirement is to display a tool-tip for  a radwindow when i mouse hover the window? Can somebody suggest us on how to implement this?

  2. Fiko
    Fiko avatar
    1406 posts

    Posted 04 Jun 2010 Link to this post

    Hello Sabrina,

    Your scenario is possible only when the RadWindow's content is set through its <ContentElement>. If this is your case the solution should looks like this:
    <telerik:RadWindow ID="RadWindow1" runat="server">
    <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" RelativeTo="Mouse"
        MouseTrailing="true" Text="RadWindow1">
    <asp:Button ID="Button2" runat="server" Text="Open RadWindow" OnClientClick="openRadWindow(); return false;" />
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type="text/javascript">
            function openRadWindow()
                var oWindow = $find("<%= RadWindow1.ClientID %>");
            function showWindowToolTip(oWindow)
                var radToolTipManager = $find("<%= RadToolTipManager1.ClientID %>");
                var radToolTip = radToolTipManager.getToolTipByElement(oWindow.get_popupElement());
                if (!radToolTip)
                    var radToolTip = radToolTipManager.createToolTip(oWindow.get_popupElement());

    Please note that if you load a different document in RadWindow control (using NavigateUrl property) you can set tooltip only to the RadWindow's elements like command buttons for example. The tootltip will not be shown when the mouse is over the RadWindow's content.

    I hope this helps.

    All the best,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top