DatePicker Ondateselected event not working

1 posts, 0 answers
  1. t
    t avatar
    1 posts
    Member since:
    Aug 2017

    Posted 08 Aug 2017 Link to this post



    Iam using Rad DatePicker contis and its OndateSelected event is not working / not firing. I wanted to hide control on date change and the event is not being fired. Here is my control and its attributes.

     <telerik:RadDatePicker AutoPostBack="true"   OnSelectedDateChanged="webLink_SelectedDateChanged" 
                    ID="webLink" runat="server" ShowPopupOnFocus="false" EnableShadows="false"  Visible="true"
                <clientevents OnDateSelected="DateSelected" />                      
                      <Calendar ID="Calendar1" runat="server" EnableKeyboardNavigation="true" EnableMultiSelect="false" />
                        <DatePopupButton CssClass="adjustdate" ImageUrl="../../images/calendar.png" HoverImageUrl="../../images/calendar.png"
                        Visible="true"   ToolTip ="<%$ Resources: Timetable, CALENDAR_TOOLTIP %>" Style="display:inline-block"  />
            </telerik:RadDatePicker>   </span> 


    function DateSelected(sender, e) {
                    $("#ctl00_ContentPlaceHolder1_webLink_dateInput").parent().parent().attr('style', 'display:none;');

Back to Top