Skip to main content

ASPxClientScheduler.UpdateAppointment(apt) Method

Client-side scripting method to update the specified appointment.

Declaration

UpdateAppointment(
    apt: ASPxClientAppointment
): void

Parameters

Name Type Description
apt ASPxClientAppointment

An ASPxClientAppointment object representing the client-side appointment.

Remarks

The UpdateAppointment method initiates a callback command with the SchedulerCallbackCommandId.ClientSideUpdateAppointment identifier. It passes client appointment property values to the server, and updates a server Appointment counterpart of the specified client appointment.

You can use the ASPxScheduler.BeforeExecuteCallbackCommand event to intercept a callback and execute a custom update command instead of the default. This can be useful if an appointment contains custom fields.

A custom command should be inherited from the DevExpress.Web.ASPxScheduler.Internal.AppointmentClientSideUpdateCallbackCommand. Note that all client appointment properties, including custom fields, are passed with the callback as a string containing name:value pairs. Avoid using custom field names that duplicate standard appointment properties.

See Also