ToolTipManager on Literal?

3 posts, 1 answers
  1. Nik
    Nik avatar
    51 posts
    Member since:
    Sep 2009

    Posted 25 Sep 2009 Link to this post

    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. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 28 Sep 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nik
    Nik avatar
    51 posts
    Member since:
    Sep 2009

    Posted 28 Sep 2009 Link to this post

    That made sense once I thought about it. Thanks! :)
Back to Top