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

Calendar date changes during navigation

4 Answers 22 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Veteran
Anthony asked on 09 Oct 2020, 03:09 PM

There is some event that is causing the calendar to change dates upon doing a Navigation.PushAsync or Navigation.PushModalAsync when set to multi-day view. From what I can determine, it has to do with swiping left or right to change the schedule date, and not displaying the next set of dates in exactly muliples of 3 from today's date. Here is an example:

Today is the 9th, I open the calendar to 3 day view, and it shows the 9th, 10th, and 11th. I click a slot that causes a view to be pushed: 

 

await Navigation.PushAsync(new AddAppointmentView(this, appt));

I can click on any slot on any of these 3 days and it works fine. The new view appears properly.

 

* However, if I swipe left to view the 10th, 11th, and 12th is where I have the issue. When I do this, the DisplayDateChanged event fires off and says the date is the 10th properly, but when I click on a timeslot for the PushAsync event, the DisplayDateChanged event fires off again and it's set to the 10/6/2020. There shouldn't have been a date change event here at all. The calendar visibly moves to the new set of days (6th, 7th, 8th) in this scenario.

 

If I were to swipe the schedule to the right 3 days so that it's viewing the 12th, 13th, and 14th, it works fine. If I use my date picker on the page to select any date, it works fine. It only seems to have to do with swiping to change the date. Almost like some internal date is not being set when swiping, and then when a view push event happens, it tells the schedule to either move forward or move backwards 3 days.

Temporarily, is there a way to disable swiping to move dates while we figure this out?

4 Answers, 1 is accepted

Sort by
0
Anthony
Top achievements
Rank 1
Veteran
answered on 09 Oct 2020, 03:51 PM
After reviewing your xamarin forms demo, this appears in your samples as well. For example, go to Calendar & Scheduling -> Features -> Special Slots -> Drag the day a few days and then tap a timeslot, and then click cancel. Sometimes it will bring your date range back or forward to the next series.
0
Didi
Telerik team
answered on 12 Oct 2020, 01:43 PM

Hi Anthony,

Thank you for the provided information and steps to reproduce the issue. We have been reported a similar issue that can be reproduced on iOS platform and it was related to the native iOS calendar control. Here is the issue: https://feedback.telerik.com/xamarin/1476681-calendar-xamarin-ios-in-multidayview-the-displaydate-is-changed-after-navigation-to-a-new-screen 

Its status is in development, and if passing testing the fix will be included in the Service Pack - expected next week.

What I can suggest is: I can open a support ticket on your behalf and attach the custom build which includes the fix so you can test on your side whether this fix will solve the issue.

I have tested the example you have mentioned: Special Slots on iOS and Android and I cannot reproduce the issue? In addition on which platform the issue observes?

I look forward to your reply.

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Anthony
Top achievements
Rank 1
Veteran
answered on 12 Oct 2020, 02:24 PM

The workaround I used was the same was what they noted in the page you linked to me, but it's very awkward. You can see the dates changing when navigating, and then the dates changing again when navigating back. Since we also have an event setup to retrieve appointments when the displayed dates change, this causes 2 additional data requests every time there is navigation.

 

I would like the custom build to test this functionality on. Please go ahead and create the support ticket for me to send this over.

The issue is on iOS. I was reported this from our QA staff on iPhone and iPad on ios 13.x, and I can reproduce this every single time on iOS 14 emulator iPhone 11 Pro Max with my code, and with the Special Slots sample. 

0
Didi
Telerik team
answered on 12 Oct 2020, 03:23 PM

Hi Anthony,

I opened a support ticket on your behalf and attached the custom build to it. We can continue the communication in the support ticket tread. 

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Calendar & Scheduling
Asked by
Anthony
Top achievements
Rank 1
Veteran
Answers by
Anthony
Top achievements
Rank 1
Veteran
Didi
Telerik team
Share this question
or