Version

ScheduleDataSource Class

Abstract base class for a data source which provides Infragistics.Scheduler.Appointment and Infragistics.Scheduler.ScheduleResource data.
Syntax
public abstract class ScheduleDataSource : Infragistics.XamarinForms.Controls.ElementBase, Xamarin.Forms.IElementController  
Remarks

ScheduleDataSource provides the ability to bind the XamScheduler to a source of data from which Infragistics.Scheduler.Appointment and Infragistics.Scheduler.ScheduleResource objects can be created, updated, and deleted.

Use the GetAppointmentsInRange(DateTimeRange,IEnumerable<ScheduleResource>) method to obtain a subset of Infragistics.Scheduler.Appointment objects which lie in a specific date range.

To update an existing Infragistics.Scheduler.Appointment object, call the BeginEdit(Appointment,Action<DataError>) method to begin the edit session, and the EndEdit method to commit changes made to the object.

Similarly, a new Appointment can be created by calling the CreateAppointment(Action<DataError>) method, followed by a call to EndEdit to commit the changes.

To delete an existing Appointment, use the DeleteAppointment method.

Because the ScheduleDataSource class supports asynchronous interaction with a data source, the create/read/update/delete related methods return an object from which the data can be obtained synchronously or asynchronously, depending on the derived class implementation.

The ScheduleListDataSource class provides a concrete implementation of ScheduleDataSource, for synchronous access to a locally stored data source. See documentation of that class for details.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also