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. Image for the cookie policy date

Help Needed on two Requirements

We are using Syncfusion SfSchedule control in our Xamarin.Forms(Android and iOS only) app. Our app needs two things 

1. How can we achieve a two week or one week in month view with this control? Please find attached the screenshot.


2. How to change the date in Day View other than swiping Left/Right? Is there a way to achieve this similarly as done in Google Calendar? Please find attached the screenshot.


Please help us in achieving these requirements. We have also looked into the SfCalendar control.
Thanks in advance.

1 Reply

SP Subburaj Pandian Veluchamy Syncfusion Team June 21, 2019 09:13 AM UTC

Hi Sudip, 
 
Thank you for your interest in Syncfusion products. 
 
Query 1: Showing required number of week dates in MonthView 
As of now, we don’t have this support in SfSchedule control. We have already implemented WeekView support to our SfCalendar control with the support of showing required number of week days count and this feature will be included in our upcoming Volume 2 Beta release which is expected to be available by end of this month
 
Once this feature has been included, using that you can achieve your requirement. Even though, if you want to show DayView in the application you can integrate both SfSchedule and SfCalendar controls and achieve the same. We will include demo sample for the same in our beta release. We appreciate your patience until then. 
 
Query 2: Switching to DayView by tapping the MonthView dates   
Your requirement of switching to DayView by tapping the dates in the month view can be achieved in SfSchedule. In Schedule, CellTapped event will trigger while tapping the Schedule (TimeSlots / dates / appointments), using this you can change the ScheduleView to DayView when tapping on month view dates. We have also HeaderTapped and ViewHeaderTapped support as well, you can handle the same based on your requirement.

Please refer the following code example for the same, 
 
[C#] 
schedule.HeaderTapped += Schedule_HeaderTapped; 
 
private void Schedule_CellTapped(object sender, CellTappedEventArgs e) 
{ 
    if(schedule.ScheduleView == ScheduleView.MonthView) 
    { 
        schedule.ScheduleView = ScheduleView.DayView; 
    } 
}         
 
We have prepared sample based on your requirement, 
 
Sample link: ScheduleView_Sample

In the sample, we have switched to DayView when tapping MonthView date and switching to MonthView when tapping Header in any View.

You can refer our online User Guide documentation regarding the same, 
 
UG link: https://help.syncfusion.com/xamarin/sfschedule/data-bindings#selection

We hope this helps. Please let us know, if you have any query. 
 
Regards,
Subburaj Pandian V  


Loader.
Up arrow icon