RadDatePicker and RadDateTimePicker does not accept a particular day of the month of October

2 posts, 0 answers
  1. rodrigoesilva
    rodrigoesilva avatar
    1 posts
    Member since:
    Jul 2012

    Posted 30 Oct 2012 Link to this post

    Dear,


    Thanks for the help already, however I have a problem that also detect even be visible on the site own Telerik.


    As the explanation of the case is kinda complicated, I will try to summarize and detail.


    The control Calendars (RadDatePicker and RadTimeDatePicker) do not accept the displayed day on Sunday of Week 43 of the calendar, or any day that is existing in the sunday column in the third row of the calendar is not accepted.


    Strangely components, subtract one day from the calendar, if that date is requested. For example the current anoa, the Sunday of the week 43 October is the day 21 (10/21/2012), but when you select that date The components alter the same to day 10.20.2012, even if the day is entered event occurs.


    After some testing, I noticed that this only occurs in October, and only in week 43 and Sunday, regardless of the year.


    Ask it to be seen, and if the pages can be observed:

    http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx

    http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx


    Best Regards
  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 01 Nov 2012 Link to this post

    Hello Rodrigo,

    This problem is caused by the Daylight Saving Time. In short when you select 21 October 2012 00:00:00. It turns back to 20 October 2012 23:00:00. Which is the previous day. And this happens due to the DST the 21 October 2012 00.00.00 actually does not exist as time. In given region two seconds after 20 October 2012 22:59:59 the time is 21 October 2012 00:00:01. You could workaround this issue using the following code snippet:
    <script type="text/javascript">
      function valueChanging(sender, args)
      {
        if (args.get_newValue() == "10/21/2012")
        {
          args.set_newValue("10/21/2012 01:00 AM");
        }
      }
       
    </script>
    <telerik:RadDatePicker runat="server" DateInput-ClientEvents-OnValueChanging="valueChanging">
    </telerik:RadDatePicker>
    I also suggest that you take a look at these forum threads(thread 1, thread 2).

    Regards,
    Angel Petrov
    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. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top