2 posts, 0 answers
  1. Sidharth
    Sidharth avatar
    7 posts
    Member since:
    Nov 2011

    Posted 21 Mar 2012 Link to this post

    Dear all,

    I'm trying to setup a radtooltip that will appear (ShowEvent="OnFocus") when the user clicks on a radDatePicker. I've tried to set the TargetControlID to be the radDatePicker's ID, ID + "_wrapper" and also tried  ID + "_dateInput_text". Is this even possible? If so how can it be done?

    Kind regards
  2. Marin Bratanov
    Marin Bratanov avatar
    3555 posts

    Posted 23 Mar 2012 Link to this post

    Hi Sidharth,

    I am not sure I understand exactly when and where you want to show the tooltip.

    If you want it shown when the popup appears (i.e. the user clicks on the button) the easiest way to do so is to show it via JavaScript:
    <telerik:RadDatePicker runat="server" ID="rdp1" ClientEvents-OnPopupOpening="OnPopupOpening">
    <telerik:RadToolTip runat="server" ID="rtt1" Text="lorem ipsum dolor sit amet" TargetControlID="rdp1_popupButton"
        IsClientID="true" Position="BottomRight" RelativeTo="Element" ShowEvent="FromCode"
    function OnPopupOpening()

    If you want it to show when the user focuses the input field you can target the datepicker's input control:
    <telerik:RadDatePicker runat="server" ID="rdp1">
    <telerik:RadToolTip runat="server" ID="rtt1" Text="lorem ipsum dolor sit amet" TargetControlID="rdp1_dateInput"
        IsClientID="true" Position="BottomRight" RelativeTo="Element" ShowEvent="OnFocus"

    Where in both cases you need the ClientID of the datepicker and add the _dateInput or _popupButton suffix to it.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top