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

What am I doing wrong - RadToolTipManager

2 Answers 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vladimir
Top achievements
Rank 1
Vladimir asked on 02 Mar 2011, 09:39 PM
Stupid problem probably but make me crazy. I have link button. I want to display tool tip with image when i hover it with mouse. But I am not able to show image in tool tip. I get only tool tip without image This is my code. Please help.
*.aspx

<script type="text/javascript"><br>
    var currentTooltip = null;<br>
<br>
<br>
    function OnClientBeforeShow(sender, args) {<br>
        //Hide the currently visible tooltip <br>
        if (currentTooltip) {<br>
            if (currentTooltip != sender) currentTooltip.hide();<br>
            return;<br>
        }<br>
<br>
<br>
        currentTooltip = sender;<br>
        args.set_cancel(true);<br>
    }<br>
<br>
<br>
    function centerTooltip(img) {<br>
        if (currentTooltip) {<br>
            currentTooltip.set_contentElement(img);<br>
<br>
<br>
            //use the method updateLocation because it does not call WebService's method which loads the content <br>
            currentTooltip.updateLocation();<br>
            currentTooltip = null;<br>
        }<br>
    }<br>
    </script><br>
<br>
<br>
 <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="center"<br>
        RelativeTo="BrowserWindow" OnClientBeforeShow="OnClientBeforeShow" EnableShadow="true" Height="500" Width="500">        <br>
    </telerik:RadToolTipManager><br>
<br>
<asp:LinkButton ID="LinkButton1"    runat="server">over me</asp:LinkButton>

*.cs
protected void Page_Load(object sender, EventArgs e)<br>
 {<br>
            this.RadToolTipManager1.TargetControls.Add(this.LinkButton1.ClientID, "~/camry xle wheel.jpg", true);<br>
 }

2 Answers, 1 is accepted

Sort by
0
Vladimir
Top achievements
Rank 1
answered on 03 Mar 2011, 11:36 AM
Bad example, poor support and waste of money :(
0
Marin Bratanov
Telerik team
answered on 08 Mar 2011, 02:05 PM
Hello Vladimir,

The issue here is that after you set the URL you need to pass it to an object that is going to be displayed in the tooltip. I am attaching a simple page based on your initial code that illustrates how to populate the tooltips of RadToolTipManager. You can extend the logic to show a more customized content.

The main difference between RadToolTipManager and RadToolTip is that RadToolTipManager utilizes LoadOnDemand through AJAX or WebService which need to be configured, while RadToolTip has its content set straighforward in the declaration. More on the difference can be found in this Online Demo

Regarding to the quality of the support services, we are deeply sorry that you feel this way, but please note that the forums are a community resource and although we monitor them closely, we do not guarantee a timely reply here. The best way to reach our support staff is via the support ticketing system - the support system assigns a response time for all of your questions, depending on your license and ensures that all questions will reach the respective developers, if needed. In addition, you will be able to review your support history at your leisure. In this way your issues will be managed more precisely.
 

All the best,
Marin
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Vladimir
Top achievements
Rank 1
Answers by
Vladimir
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or