Appointment appears in wrong cell

7 posts, 0 answers
  1. Ian
    Ian avatar
    26 posts
    Member since:
    Jul 2017

    Posted 23 Nov Link to this post

    I have an appointment that has a start and end time of 23:00 and 23:59 respectively.

    If the start and end date are 28th Oct. 2017, the appointment appears in the cell for the 29th.

    If the start and end date are 29th Oct. 2017, the appointment doesn't appear at all.

    If the start and end date are 30th Oct. 2017, the appointment appears in the correct cell.

    29th October 2017 was when the clocks went forward in the UK. Perhaps this is effecting something?

    Also, if the time is set before 23:00, the appointment appears in two cells in month view.

    And when the appointment is in the wrong cell, day view shows the appointment as spanning the whole day.

    This seems like a bug.

  2. Ian
    Ian avatar
    26 posts
    Member since:
    Jul 2017

    Posted 24 Nov Link to this post

    As a work around, I have told the calendar that appointments that end from 23:00 to midnight, end at 22.59. Obviously, this results in day view finishing drawing appointments sixty one minutes early, but that's better than having a phantom appointment filling up the whole day.
  3. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    559 posts

    Posted 27 Nov Link to this post

    Hi, Ian,

    Can you please try applying the ToUniversalTime extension method to the Start/End DateTime. For example:

    public StartPage()
    {
        InitializeComponent();
     
        var date = new DateTime(2017, 11, 27, 23,0,0).ToUniversalTime();
     
        var calendar = new RadCalendar
        {
            DisplayDate = date,
            AppointmentsSource = new List<Appointment>{
                                    new Appointment {
                    Title = "Lunch with Sara",
                    Detail = "Restaurant",
                    StartDate = date,
                    EndDate = date.AddMinutes(59),
                    Color = Color.DarkTurquoise }
            }
     
        };
       this.Content = calendar;
    }

    When using this method, the issue is not reproducible at my end. 

    I am looking forward to your confirmation whether this made a difference at your end as well.

    Regards,
    Stefan Nenchev
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  4. Ian
    Ian avatar
    26 posts
    Member since:
    Jul 2017

    Posted 27 Nov in reply to Stefan Nenchev Link to this post

    Hi Stefan, that seems to remove the bugginess, except now appointments in summer time are one hour forward. Appointments during the current winter time are correct. I need the calendar to ignore winter/summer time.
  5. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    559 posts

    Posted 30 Nov Link to this post

    Hi, Ian,

    Can you please confirm the version of the controls you are testing with as there was a similar issue(the original one which you have reported where the appointments appear in the wrong cell) which we have fixed? I would like to perform some additional tests on our side before confirming whether the behavior is a bug and try to find a workaround for you. 

    Regards,
    Stefan Nenchev
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Ian
    Ian avatar
    26 posts
    Member since:
    Jul 2017

    Posted 30 Nov in reply to Stefan Nenchev Link to this post

    Hi Stefan, I'm using trial version 2017.2.818.1.
  7. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    559 posts

    Posted 05 Dec Link to this post

    Hi, Ian,

    Thank you for the confirmation.

    Actually, the behavior is different with the latest version of the controls(we had applied different fixes to the calendar in the past months). It seems that everything is working fine in MonthView(the events are properly rendered for the appropriate date they belong to). However, the behavior in DayView is not the expected one. In Android, if the appointment is present after 11pm on 29.10 - it is not rendered. The situation with iOS is even more unpleasant as all the appointments are moved with one hours behind on the 29th. With this in mind, indeed I can confirm that the behavior is a bug and there are some specifications on the 29th which we are not taking into consideration. You can track the progress of the issue on the following link from our feedback portal - Calendar: Appointments in DayView are not rendered correctly on 29.10. I have added some points to your account as well.

    Have a great rest of the week. 

    Regards,
    Stefan Nenchev
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top