This is a migrated thread and some comments may be shown as answers.

DatePicker Ondateselected event not working

0 Answers 75 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
t
Top achievements
Rank 1
t asked on 09 Aug 2017, 04:16 AM

Hello,

 

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"
                Width="200px">
            <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").hide();
                $("#ctl00_ContentPlaceHolder1_webLink_dateInput").parent().parent().attr('style', 'display:none;');
            }

No answers yet. Maybe you can help?

Tags
DatePicker
Asked by
t
Top achievements
Rank 1
Share this question
or