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

asp:image and a tool tip

1 Answer 60 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
The KID
Top achievements
Rank 2
The KID asked on 31 Jul 2008, 10:57 PM
Ok, this should be simple but why isn't this working???? I've gotten version one to work, then i tried version two. Can you tell me why it's not working?

Version #1
<href="#" id="tip"><img src="../../Images/Buttons/tipimage.gif" /></a
 
<telerik:RadToolTip runat="server" ID="RadToolTip1"  
          Height="200px"  
          Width="200px"  
          TargetControlID="tip"  
          IsClientID="true"  
          Sticky="true"  
          Animation="Fade"  
          Position="BottomCenter"  
          RelativeTo="Element"  
          Skin="DWDS"  
          EnableEmbeddedSkins="false"
     <div> 
          <span style="color:Maroon; font-weight:bold;"
               <asp:Label ID="lblParticipantName2" runat="server" /> 
          </span> 
     </div> 
</telerik:RadToolTip> 

Version #2
<asp:Image ID="tip" runat="server" ImageUrl="../../Images/Buttons/tipimage.gif" /> 
                             
<telerik:RadToolTip runat="server" ID="RadToolTip1"  
          Height="200px"  
          Width="200px"  
          TargetControlID="tip"  
          IsClientID="true"  
          Sticky="true"  
          Animation="Fade"  
          Position="BottomCenter"  
          RelativeTo="Element"  
          Skin="DWDS"  
          EnableEmbeddedSkins="false"
     <div> 
          <span style="color:Maroon; font-weight:bold;"
               <asp:Label ID="lblParticipantName2" runat="server" /> 
          </span> 
     </div> 
</telerik:RadToolTip> 

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 01 Aug 2008, 07:03 AM
Hello Mike,

It is possible that this code block is in a UserControl or in a page that uses a master page.
Since the <asp:Image> is a server control, in this case its ClientID will be different than its ID.

However, in your second RadToolTip declaration you have set the following property:
IsClientID = "true" - which instructs the tooltip to look for an element with such an ID on the client-side.

My suggestion is to set this property to false, and see if things work.

Sincerely yours,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
The KID
Top achievements
Rank 2
Answers by
Tervel
Telerik team
Share this question
or