Remove tooltip on datepicker

2 posts, 0 answers
  1. Ricky
    Ricky avatar
    10 posts
    Member since:
    Apr 2012

    Posted 16 Apr 2012 Link to this post

    Hi,

    i have 2 controls, textbox and datepicker,

    i used tooltipmanager, how i remove all tooltip on the calendar, but keep the tooltip on the textbox ?

    thanks in advance.
    <telerik:RadScriptManager ID="RadScriptManagerDefault" runat="server" EnableScriptCombine="false">
           </telerik:RadScriptManager>
           <telerik:RadToolTipManager runat="server" ID="ToolTipManager" AutoTooltipify="true"
               Position="TopRight" Skin="Office2007">
           </telerik:RadToolTipManager>
           <br /><br /><br />
           <asp:TextBox ID="TextBox1" runat="server" ToolTip="halo"></asp:TextBox>
           <br /><br />
           <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Width="110">
           </telerik:RadDatePicker>
           <br /><br />
           <telerik:RadDatePicker ID="RadDatePicker2" runat="server" Width="110">
           </telerik:RadDatePicker>
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 16 Apr 2012 Link to this post

    Hi Ricky,

    Try the following code snippet to remove all tooltip in RadDatePicker and to keep tooltip only in TextBox.

    ASPX:
    <telerik:RadToolTipManager runat="server" ID="ToolTipManager" AutoTooltipify="true" Position="TopRight" Skin="Office2007">
      <TargetControls>
        <telerik:ToolTipTargetControl TargetControlID="TextBox1" />
      </TargetControls>
    </telerik:RadToolTipManager>
    <br /><br /><br />
    <asp:TextBox ID="TextBox1" runat="server" ToolTip="halo"></asp:TextBox>
    <br /><br />
    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Width="110" Calendar-ShowDayCellToolTips="false" >
    </telerik:RadDatePicker>
    <br /><br />
    <telerik:RadDatePicker ID="RadDatePicker2" runat="server" Width="110" Calendar-ShowDayCellToolTips="false">
    </telerik:RadDatePicker>

    JS:
    <script type="text/javascript">
        function pageLoad()
        {
            var datePicker1 = $find("<%= RadDatePicker1.ClientID %>");
            datePicker1.get_popupButton().title = "";
            var datePicker2 = $find("<%= RadDatePicker2.ClientID %>");
            datePicker2.get_popupButton().title = "";
        }
    </script>

    Note: Please set ShowDayCellToolTips property of Calendar to false.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top