Skip to main content

DataSource.FetchAppointments Event

Allows you to load appointments only for the specified date range.

Namespace: DevExpress.Maui.Scheduler

Assembly: DevExpress.Maui.Scheduler.dll

NuGet Package: DevExpress.Maui.Scheduler

Declaration

public event FetchDataEventHandler FetchAppointments

Event Data

The FetchAppointments event's data class is FetchDataEventArgs. The following properties provide information specific to this event:

Property Description
AsyncResult Gets or sets the Task that allows you to fetch data asynchronously. This is a bindable property.
CancellationToken Gets an object that notifies that the current data load operation was cancelled during the asynchronous data fetch process.
Ids Gets the identifiers of reloaded appointments that the ReloadAppointments() method returns.
Interval Gets the time interval that includes all loaded appointments.
Result Gets or sets the list of appointments you need to load from the data source. This is a bindable property.

The event data class exposes the following methods:

Method Description
GetFetchExpression<T>() Generates an expression you can use to obtain appointments from the data source.
IsVisibleInterval() Determines whether the specified interval is visible in the Scheduler when data loads asynchronously.

Remarks

Specify QueryStart and QueryEnd mappings to handle the FetchAppointments event. These mappings allow you to calculate the correct interval used in a SELECT query when you handle the FetchAppointments event.

See Also