Skip to main content

SchedulerStorageControlExtension.GetAppointmentsToRemove<T>(SchedulerStorageControlSettings, FetchAppointmentsMethod, Object) Method

Obtains appointments which should be removed from the data source.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public static T[] GetAppointmentsToRemove<T>(
    SchedulerStorageControlSettings settings,
    FetchAppointmentsMethod fetchAppointmentsMethod,
    object resourceDataObject
)

Parameters

Name Type Description
settings SchedulerStorageControlSettings

A SchedulerStorageControlSettings object containing settings applied to the Scheduler Storage control.

fetchAppointmentsMethod FetchAppointmentsMethod

A FetchAppointmentsMethod delegate that provides appointments to insert.

resourceDataObject Object

A collection of resources in the scheduler storage control.

Type Parameters

Name
T

Returns

Type Description
T[]

A Model data class instance that is the entity contained in the appointment data source and mapped to an appointment.

Remarks

The GetAppointmentsToRemove<T> method creates a fake Scheduler Storage Control but does not apply all scheduler settings specified in the view, for better performance. Then, an appointment being inserted is retrieved from this Scheduler Storage Control instance.

See Also