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

Using tooltip within an asp panel

2 Answers 142 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 12 Aug 2010, 11:43 AM
Hi

I am not sure if I am doing the wrong thing here. I have several flag imagebuttons in a master page,
but the tooltip does not display on hover. I can't see why not. They look like this:
<asp:ImageButton ID="ImageButtonChinese" runat="server" ImageUrl="~/images/flags/chinese-flag.gif" />
  
      <telerik:RadToolTip ID="RadToolTipChinese" runat="server" Animation="Fade" 
      TargetControlID="ImageButtonChinese" IsClientID="true" 
      Text="Click flag for Mandarin site" Position="TopRight" >
      </telerik:RadToolTip>

The image buttons are made visible or not in code behind, during the page load event.
What am I missing?

Thanks for help!

Clive

Clive

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Aug 2010, 01:28 PM
Hello Clive,

In order to solve the problem you must set isClientID="false" for RadToolTip which instruct the tooltip for search for target with the ID. For more information on this scenario check out the following forum post.
RadToolTip does not work on ASPX page inheriting from Master Page


Thanks,
Princy.


0
Svetlina Anati
Telerik team
answered on 17 Aug 2010, 09:03 AM
Hi guys,

 Indeed, to solve the issue you should set isClientID to false. However, I want just to clarify that this is not a limitation of the RadToolTip and it is fully functional with MasterPages. The need for this setting comes from the fact that the MasterPage is an INaming Container, such as UserControls, etc and it changes the IDs of the controls in the common case (in ASP.NET 4.0 this could be controlled by the ClientIDMode property). This means that in such scenarios the ID is not the same as the ClientID and you should "inform" the tooltip about this to have everything working correctly. The very same behavior could be reproduced with standard ASP/NET controls and INaming Containers. More information about INaming Containers is available on the net, e.g below:

http://www.google.bg/#hl=bg&rlz=1W1ADFA_en&&sa=X&ei=KkJqTLvgH8vj4gaU7-WLAQ&ved=0CBYQBSgA&q=inamingcontainer+asp&spell=1&fp=2d4371d2e102af3d

I hope that my explanation is detailed enough and helpful, let me know if you have any other questions. 

Greetings,
Svetlina
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
Tags
ToolTip
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Svetlina Anati
Telerik team
Share this question
or