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.
Unfortunately, activation email could not send to your email. Please try again.

Schedule - MinDisplayDate & MaxDisplayDate strange behavior

Thread ID:

Created:

Updated:

Platform:

Replies:

124128 May 18,2016 02:56 PM May 19,2016 09:31 AM Xamarin.Forms 1
loading
Tags: SfSchedule
Guilherme
Asked On May 18, 2016 02:56 PM

Hello, 

I'm using Schedule with monthview and I want to limit the user to see only two months. To accomplish that, I'm using MinDisplayDate and MaxDisplayDate this way:

            DateTime MaxDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.DaysInMonth(DateTime.Today.Year, DateTime.Today.Month));
            Scheduler.MinDisplayDate = new DateTime(MaxDate.Year, MaxDate.Month - 1, 1);                        
            Scheduler.MaxDisplayDate = MaxDate;

The idea is to set the MinDisplayDate with the first day of last month, and the MaxDisplayDate set to the last day of the current month. 

When I run the app, and try to swipe to the right, the Schedule "shake" and stay at the current month. And when I swipe to the left two times, the Schedule also "shake". Is there a way to avoid this ?


Thanks!


Subburaj Pandian Veluchamy [Syncfusion]
Replied On May 19, 2016 09:31 AM

Hi Guilherme, 
 
Thank you for your interest in Syncfusion products.  
 
We have analyzed your requirement from the provided code snippet, and we are able to reproduce the mentioned issue with “Restricting ScheduleView when reaching Minimum and Maximum display date” in SfSchedule Xamarin Forms.  
 
We have logged an issue report on this and the issue fix for the mentioned issue will be included in our upcoming volume 2, 2016 release which is expected to be available by mid of June, 2016. We appreciate your patience until then. 
 
Please let us know if you have any queries. 
 
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.

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.

;