Back to Devexpress

DataSource.FetchAppointments Event

maui-devexpress-dot-maui-dot-scheduler-dot-datasource-b8c8ef18.md

latest2.7 KB
Original Source

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

csharp
public event FetchDataEventHandler FetchAppointments

Event Data

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

PropertyDescription
AsyncResultGets or sets the Task that allows you to fetch data asynchronously. This is a bindable property.
CancellationTokenGets an object that notifies that the current data load operation was cancelled during the asynchronous data fetch process.
IdsGets the identifiers of reloaded appointments that the ReloadAppointments() method returns.
IntervalGets the time interval that includes all loaded appointments.
ResultGets 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:

MethodDescription
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

DataSource Class

DataSource Members

DevExpress.Maui.Scheduler Namespace