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

    Hi,
         How do I set radtooltip for raddatepicker. I have tried many a things and failed. Please help.
    thanks
    Savyo
  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.

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

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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">
        <Calendar>
            <SpecialDays>
                <telerik:RadCalendarDay Repeatable="Today">
                    <ItemStyle CssClass="rcToday" />
                </telerik:RadCalendarDay>
            </SpecialDays>
        </Calendar>
    </telerik:RadDatePicker>
    <telerik:RadToolTip ID="RadToolTip_RegisterUser_BirthDay" runat="server" IsClientID="true" TargetControlID="RegisterUser_BirthDay"
        meta:resourcekey="RadToolTip_RegisterUser_BirthDay" RelativeTo="Element"
        Height="40px" Position="MiddleRight"
        EnableAriaSupport="True">
    </telerik:RadToolTip>


    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