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

Appointment appears in wrong cell

6 Answers 23 Views
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 23 Nov 2017, 12:17 PM

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.

6 Answers, 1 is accepted

Sort by
0
Ian
Top achievements
Rank 1
answered on 24 Nov 2017, 10:12 PM
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.
0
Stefan Nenchev
Telerik team
answered on 27 Nov 2017, 03:23 PM
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
0
Ian
Top achievements
Rank 1
answered on 27 Nov 2017, 04:08 PM
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.
0
Stefan Nenchev
Telerik team
answered on 30 Nov 2017, 03:27 PM
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
0
Ian
Top achievements
Rank 1
answered on 30 Nov 2017, 05:08 PM
Hi Stefan, I'm using trial version 2017.2.818.1.
0
Stefan Nenchev
Telerik team
answered on 05 Dec 2017, 01:59 PM
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
Asked by
Ian
Top achievements
Rank 1
Answers by
Ian
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Share this question
or