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
close icon

Navigate to selected date when switching to Week or Day view

When I've got a date selected in Month View, I need the Schedule to have this date displayed when I switch to Week or Day view.

How can I do this?

3 Replies

SP Subburaj Pandian Veluchamy Syncfusion Team August 30, 2016 09:20 AM UTC

Hi James,

Thank you for your interest in Syncfusion products.

We have checked and “Navigate to SelectedDate while switching ScheduleView” in Xamarin iOS is achievable by setting selecteddate as MoveToDate in the didSelectDate Event. From that you can achieve your requirement, please find the below code example,


SFSchedule schedule = new SFSchedule();
schedule.Delegate = new ScheduleDelegate();

public class ScheduleDelegate : SFScheduleDelegate
{
internal ScheduleAppointment ScheduleApp;
public override void didSelectDate(SFSchedule schedule, Foundation.NSDate selectedDate, Foundation.NSArray appointments)
{
schedule.ScheduleView = SFScheduleView.SFScheduleViewDay;
schedule.MoveToDate(selectedDate);
}
}
 
  
  
Please let us know, if you have any query on this.

Regards,
Subburaj Pandian V.
 



JL James Lavery August 31, 2016 12:22 PM UTC

Thanks - that's just what I was looking for.


SP Subburaj Pandian Veluchamy Syncfusion Team September 1, 2016 04:30 AM UTC

Hi James,

Thank you for the update.

We are happy that the given solution has met your requirement, please let us know if you need any further assistance.

Regards,
Subburaj Pandian V



Loader.
Live Chat Icon For mobile
Up arrow icon