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.

Navigate to selected date when switching to Week or Day view

Thread ID:

Created:

Updated:

Platform:

Replies:

125618 Aug 29,2016 05:56 AM Sep 1,2016 12:30 AM Xamarin.iOS 3
loading
Tags: SfSchedule
James Lavery
Asked On August 29, 2016 05:56 AM

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?

Subburaj Pandian Veluchamy [Syncfusion]
Replied On August 30, 2016 05:20 AM

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.
 


James Lavery
Replied On August 31, 2016 08:22 AM

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

Subburaj Pandian Veluchamy [Syncfusion]
Replied On September 1, 2016 12:30 AM

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



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.

;