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

ToolTipManager on Literal?

2 Answers 203 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Nik
Top achievements
Rank 1
Nik asked on 25 Sep 2009, 02:12 PM
I'm trying to setup tooltips on our product listing page. The problem I'm seeing is that tooltips don't seem to be showing up on Literal controls. Is this true? Are there other asp.net types that tooltips cannot be applied to?

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 28 Sep 2009, 10:15 AM
Hi Nik,

The Literal control doesn't have any visual appearance on a Web Form but is used to insert literal text into a Web Form. For example if you examine the HTML dump of a page with the following code in it
<asp:Literal ID="lit1" runat="server">some text</asp:Literal>
you will notice that only the text is rendered on the page - that is why there is no tooltip. If you want to have a tooltip on the text, you need to wrap it in some container - DIV, or P for example,  with the corresponding "title" property.


Regards,
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.
0
Nik
Top achievements
Rank 1
answered on 28 Sep 2009, 07:37 PM
That made sense once I thought about it. Thanks! :)
Tags
ToolTip
Asked by
Nik
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Nik
Top achievements
Rank 1
Share this question
or