We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Schedule shows up in previous week

Thread ID:

Created:

Updated:

Platform:

Replies:

143587 Mar 28,2019 05:37 AM UTC May 15,2019 10:16 AM UTC Xamarin.Forms 6
loading
Tags: SfSchedule
Siggi
Asked On March 28, 2019 06:03 AM UTC

Hi,
if my app is running for a longer timespan (e.g. started on Friday, today is Monday) and I navigate to the scheduler page, the scheduler shows the last weeks timespan.
It should show the current week.
[EDIT]
As a sideeffect, the method "NavigateTo" stops working.

Regards
Siggi

Arun siva [Syncfusion]
Replied On March 29, 2019 02:44 PM UTC

HI Siggi, 
 
Thank you for contacting Syncfusion support. 
 
We have analyze the reported behavior “Schedule displays the previous week instead of current week”  and it works fine from our end, we have prepared a sample by placing schedule inside navigation page and navigate to schedule displays and it displays the current week as expected and we have tested the NavigateTo method and it works fine as expected. 
 
Sample: Schedule 
 
If the sample doesn’t meet your requirement kindly revert us by modifying the sample based on your scenario and replication procedure and furthermore details, which help us to analyze and resolve the reported issue. 
 
Regards 
Arun Siva R 


Siggi
Replied On March 31, 2019 07:34 AM UTC

OK,
maybe my description was not exact enough, so here are the steps to reproduce the error with your example:

1. Start your demo (UWP)
2. Press the button to show the scheduler
3. The scheduler is shown, with the current date (in weekview)
4. Navigate back to the start page
5. Set the date of your PC to one month in the future, simulating your app is running a full month, just showing the start page
6. Press the button to show the scheduler
7. The scheduler still shows the week from the original date, it should show the week from the new set date

hope that helps you to find that bug.
Regards


Arun siva [Syncfusion]
Replied On April 1, 2019 01:42 PM UTC

Hi siggi, 
 
Thank you for the update. 
 
We have analyzed the reported behavior “Schedule doesn’t move to the current date while update the date in windows on UWP” and you can achieve this in sample level by using NavigateTo method of Schedule, you can call this method while navigate to schedule with the required date time value and schedule will be navigated to the mentioned date. 
 
Sample: Schedule. 

We hope that this helps you, kindly revert us if you have any concern. 
 
Regards, 
Arun Siva R 


Siggi
Replied On April 2, 2019 06:34 AM UTC

Thanks for your hint,
I tried to set the "NavigateTo" property in the code-behind of the SchedulerPage.
It works like in your sample, and can be taken as a workaround.

But it is not the optimal solution, here is what happens:

I use the MVVM pattern, so the VisibleDatesChangedCommand of the schedule is used.

1. Start app with current date, navigate to Scheduler (in week view)
2. VisibleDatesChangedCommand is called once with args.visibleDates.Count=7 with the current week dates, and the appointments are shown. Fine.
3. Navigate back to start page
4. Set date to one month in the future
5. Navigate to the scheduler
6. VisibleDatesChangedCommand is called with args.visibleDates.Count=7 with the new set date week dates. Great.
7. But then: VisibleDatesChangedCommand is called again with args.visibleDates.Count=7 with the OLD date week dates. Fail.
8. Now the "OnAppearing" of the SchedulerPage is called, with NavigateTo(Date.Time.Now)
9. And again, VisibleDatesChangedCommand is called with args.visibleDates.Count=7 with the new set date week dates.

As you can see, VisibleDatesChangedCommand is called three times with this workaround, and with every call the current appointments must be queried from database.

Please consider to treat this behavoir as a bug. The schedule should always use the current date when showing up, not the date it was started with the first time.

[EDIT] In addition, the NavigateTo doesn't work after that. Once called with a new date, the VisibleDatesChangedCommand is fired THREE times,
first time with the new dates, then with the dates from the very first showing of the Scheduler, third time with the dates last shown...........

Regards


 

Subburaj Pandian Veluchamy [Syncfusion]
Replied On April 3, 2019 01:26 PM UTC

Hi Siggi, 
  
Thank you for the update. 
  
We have analyzed your query “Schedule doesn’t move to the current date while update the date in windows on UWP” and we have considered to improve this behavior and logged an improvement task for the same. We will include the changes in our upcoming Volume 1 SP1 release, which is expected to roll out at the end of April 2019. We appreciate your patience until then.  
 
You can track the status of your request and contact us for any further inquiries through this link. 
  
  
Regards,
Subburaj Pandian V 
 


Subburaj Pandian Veluchamy [Syncfusion]
Replied On May 15, 2019 10:16 AM UTC

Hi Siggi, 
  
We are glad to announce that our Essential Studio 2019 Volume 1 SP1 Release v17.1.0.47 is rolled out with the implementation “Schedule doesn’t move to the current date while update the date in windows on UWP” and is available for download under the following link. 
  
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards,
Subburaj Pandian V    


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;