How to remove all tooltips

2 posts, 0 answers
  1. Rune
    Rune avatar
    43 posts
    Member since:
    May 2009

    Posted 19 Jan 2010 Link to this post

     How do I remove all tooltips from the calendar? I have found the following properties. But cannot find the one to remove tooltip from coloumn headers. (Monday, thuesday etc.)

    ShowDayCellToolTips
    ="false"
    FastNavigationNextToolTip=""
    FastNavigationPrevToolTip=""
    NavigationNextToolTip=""
    NavigationPrevToolTip=""
  2. Dimo
    Admin
    Dimo avatar
    8450 posts

    Posted 19 Jan 2010 Link to this post

    Hello Rune,

    There is no property to control these tooltips. Please remove them programmatically on the client:

    <%@ Page Language="C#" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     
    <head id="Head1" runat="server">
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <title>RadControls</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
     
    <telerik:RadCalendar ID="RadCalendar1" runat="server" ShowDayCellToolTips="false">
        <ClientEvents OnLoad="RemoveToolTips" />
    </telerik:RadCalendar>
     
    <script type="text/javascript">
     
    function RemoveToolTips(sender, args)
    {
        var colHeaders = sender.get_element().getElementsByTagName("TH");
        for (var j = 0; j < colHeaders.length; j++)
        {
            if (colHeaders[j].title && colHeaders[j].title != "")
                colHeaders[j].title = "";
        }
    }
     
    </script>
     
    </form>
    </body>
    </html>


    Greetings,
    Dimo
    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.
Back to Top