Skip to main content

SchedulerStorageControlExtension.GetAppointmentsToInsert<T>(SchedulerStorageControlSettings, Object) Method

Obtains appointments which should be inserted into the data source.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static T[] GetAppointmentsToInsert<T>(
    SchedulerStorageControlSettings settings,
    object appointmentDataObject
)

Parameters

Name Type Description
settings SchedulerStorageControlSettings

A T[] object containing settings applied to the Scheduler Storage control extension.

appointmentDataObject Object

A collection of appointments 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 GetAppointmentsToInsert<T> method creates a fake Scheduler Storage control extension 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 extension instance.

Utilizing the GetAppointmentsToInsert<T> method allows you to handle recurring appointments correctly. Now when an end-user selects and moves multiple recurring appointments at the same time, the corresponding number of database records will be created. For example, if two recurring appointments are moved simultaneously, two records will appear in the database.

See Also