Exception occurring on sfCalendar

Hi Team,
We are using sfCalendar for Xamarin.Android App.
However, we are getting an exception
PFB attachment having the exception details
Request you to help us in this regard.

Please note: We are using SfCalendar's SfCalendar_DrawMonthCell to customise the calendar



Attachment: SfCalendar_Exception_f118bd03.rar

3 Replies

VA Vinnalan Aravazhi Syncfusion Team January 26, 2018 11:44 AM UTC

Hi Rahul,

Thanks for contacting Syncfusion support.

We have checked the reported issue "Exception occurring on sfCalendar" from our side and we are unable to reproduce the reported issue from our side. We have attached a sample in which we have tested the reported issue. Please find the sample from the below link.

Sample: http://www.syncfusion.com/downloads/support/forum/135624/ze/DrawMonthCell-2093216415 

Please let us know if you have any other queries.

Regards,
Vinnalan K A. 



RA Rahul February 1, 2018 10:47 AM UTC

Hi Team,

We are using SfCalendar for Xamarin.Android.
Our requirement demands SfCalendar view to show only the Current Month.
Hence, we are using the below lines of code to enable only MonthView.

 private void SfCalendar_ViewModeChanged(object sender, SfCalendar.ViewModeChangedEventArgs e)
        {                           
                if (sfCalendar.ViewMode == ViewMode.YearView)
                    sfCalendar.ViewMode = ViewMode.MonthView;          
        }
We are also using the properties  sfcalendar.NavigationEnable=false; &  sfCalendar.NavigateToMonthOnInActiveDatesSelection = false;

However, when we click on the header or tap on the next/previous month dates  we are able to navigate to the respective month.
Also, when we tap on the next/previous month dates and keep our application in the background and again open the app, we are able to see the month of respective dates that was tapped instead of  current month.

We need the calendar to show on the current month dates. It should not navigate to any other month.
Request you to help us in this regard.


Regards,
Rahul


VA Vinnalan Aravazhi Syncfusion Team February 2, 2018 01:01 PM UTC

Hi Rahul,

Thanks for the update.

We have checked your requirement "Calendar must show only current month dates" and we have created a sample based on your requirement.

In this sample we used ViewModeChanged event to display only MonthView, NavigationEnable and NavigateToMonthOnInActiveDateSelection API are used to disable navigation to other months. Please find the sample from the below link.

Sample: http://www.syncfusion.com/downloads/support/forum/135624/ze/DrawMonthCell1592211056 

Please let us know if you have any other queries.

Regards,
Vinnalan K A.  


Loader.
Up arrow icon