RadDatePicker not always seeing manaully entered dates

2 posts, 0 answers
  1. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 25 Oct 2011 Link to this post

    I am having an issue on multiple pages with the RadDatePicker.  If the user uses the Calendar and selects a date there is no issue, but about 35% of the time if the user manually enters the date byt typing it in it does not recognize the date as the selected date.  I am using version 2009.3.1314.35.

    <telerik:RadDatePicker ID="dpMeetingDate" runat="server" MinDate="2009-01-01" Width="150px" ImagesPath="" Skin="Vista" Enabled="false">
            <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" Skin="Vista"  />
            <DatePopupButton ImageUrl="" HoverImageUrl="" />
    </telerik:RadDatePicker>

    when I try to save or sometimes try to filter by looking at the date entered if the user has manually entered it I get the error that no date was selected.

    if (dpMeetingDate.SelectedDate == null)
    {
      lblError.Text += "<br>  - Select a meeting date";
      canSave = false;
    }
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Oct 2011 Link to this post

    Hello Eric Klein,

    I have tried to reproduce the same issue but no avail. I am using version 2011, 2, 712, 35. 

    C#:
    protected void RadDatePicker1_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
    {
     if (RadDatePicker1.SelectedDate == null)
     {
       //your code.
     }
    }

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top