Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    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

    C#
    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