Tooltip for Raddatepicker

3 posts, 0 answers
  1. Savyo
    Savyo avatar
    75 posts
    Member since:
    Apr 2012

    Posted 18 Sep 2012 Link to this post

         How do I set radtooltip for raddatepicker. I have tried many a things and failed. Please help.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Sep 2012 Link to this post

    Hi Savyo,

    The RadDatePicker is a complex control which contains many HTML elements. Those elements have different client IDs and they should be set in the TargetControls collection, e.g if you want to tooltipify the wrapper element of the RadDatePicker, try the following code.

    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" ></telerik:RadDatePicker>
    <telerik:RadToolTip ID="RadToolTip1" runat="server" IsClientID="true" TargetControlID="RadDatePicker1_wrapper" Text="show tooltip" ShowEvent="OnMouseOver">

    Hope this helps.

  3. Ivo
    Ivo avatar
    8 posts
    Member since:
    Nov 2012

    Posted 12 Jun 2013 Link to this post

    Hi everyone,

    For me what did was to set the following :

    <telerik:RadDatePicker ID="RegisterUser_BirthDay" runat="server" Width="140px" AutoPostBack="true" MinDate="01/01/1900" meta:resourcekey="RegisterUser_BirthDay">
                <telerik:RadCalendarDay Repeatable="Today">
                    <ItemStyle CssClass="rcToday" />
    <telerik:RadToolTip ID="RadToolTip_RegisterUser_BirthDay" runat="server" IsClientID="true" TargetControlID="RegisterUser_BirthDay"
        meta:resourcekey="RadToolTip_RegisterUser_BirthDay" RelativeTo="Element"
        Height="40px" Position="MiddleRight"

    and then:

    protected void Page_Load(object sender, EventArgs e)
            RegisterUser_BirthDay.MaxDate = DateTime.Now;
            RadToolTip_RegisterUser_BirthDay.TargetControlID = RegisterUser_BirthDay.ClientID + "_wrapper";

    I hope it helps :)
Back to Top