RadDatepiker OnDateSelected issue

Thread is closed for posting
2 posts, 0 answers
  1. srikanth
    srikanth avatar
    7 posts
    Member since:
    Nov 2010

    Posted 25 Nov 2010 Link to this post

    http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/clientsideevents/defaultcs.aspx in this link ondateselected event is firing for empty text in datepiker
    but in my code it is working only for some value not for emptyness....plz help me

    function OnDateSelected(sender, e) {


    if (e.get_newDate() == null) {


    document.getElementById('<%=fvDemographics.FindControl("radtxtAgeYears").ClientID%>').value = 0;

    document.getElementById('<%=fvDemographics.FindControl("radtxtAgeMonths").ClientID%>').value = 0; }

     else {







    <telerik:RadDatePicker TabIndex="15" Width="45%" ID="radtxtDOB" CausesValidation="false"









    DbSelectedDate='<%# Bind("DobString") %>' runat="server" MinDate="01/01/1900"


















    <ClientEvents OnDateSelected="OnDateSelected">











  2. Daniel
    Daniel avatar
    4949 posts

    Posted 01 Dec 2010 Link to this post

    Hello Srikanth,

    I tested your code on my end but I failed to reproduce the issue. What I did: I cleared the selected date and clicked outside of the control to trigger the event.
    For your convenience I attached my test project to this post. Let me know if I'm leaving something out.

    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top