SchedulerExtension.GetAppointmentsToRemove<T>(String, Object, Object, MVCxAppointmentStorage, MVCxResourceStorage) Method

Obtains appointments which should be removed from the data source.

Namespace: DevExpress.Web.Mvc

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


public static T[] GetAppointmentsToRemove<T>(
    string schedulerName,
    object appointmentDataObject,
    object resourceDataObject,
    MVCxAppointmentStorage appointmentStorage,
    MVCxResourceStorage resourceStorage
Public Shared Function GetAppointmentsToRemove(Of T)(
    schedulerName As String,
    appointmentDataObject As Object,
    resourceDataObject As Object,
    appointmentStorage As MVCxAppointmentStorage,
    resourceStorage As MVCxResourceStorage
) As T()


Name Type Description
schedulerName String

The name of a Scheduler as it is specified by the SettingsBase.Name property.

appointmentDataObject Object

A collection of appointments in the scheduler.

resourceDataObject Object

A collection of resources in the scheduler.

appointmentStorage MVCxAppointmentStorage

An MVCxAppointmentStorage object that implements the appointment storage functionality and contains mappings.

resourceStorage MVCxResourceStorage

An MVCxResourceStorage object that implements the resource storage functionality and contains mappings.

Type Parameters



Type Description

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


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


View Example

@*#region #SchedulerPartial*@
settings => {
    settings.Name = "scheduler";
    settings.CallbackRouteValues = new { Controller = "Home", Action = "SchedulerPartial" };
    settings.EditAppointmentRouteValues = new { Controller = "Home", Action = "EditAppointment" };

    settings.Storage.EnableReminders = true;

    settings.ActiveViewType = SchedulerViewType.FullWeek;
    settings.Views.FullWeekView.Styles.ScrollAreaHeight = 600;
    settings.Start = new DateTime(2015, 4, 18);

}).Bind(Model.Appointments, Model.Resources).GetHtml()
@*#endregion #SchedulerPartial*@
See Also