Skip to main content
A newer version of this page is available. .

ASPxClientAppointment.SetEnd(end) Method

Sets the property value of the client appointment, corresponding to the Appointment.End appointment property.

Declaration

SetEnd(
    end: Date
): void

Parameters

Name Type Description
end Date

A JavaScript Date object representing the end of the appointment.

Remarks

Use the ASPxClientAppointment.GetEnd method to obtain the end of the client appointment.

Tip

For the complete sample project, see the following DevExpress Support Center example: https://supportcenter.devexpress.com/ticket/details/e3786/simplest-implementation-of-a-client-side-appointment-editing-form.

function CreateAppointment(scheduler) {
    var apt = new ASPxClientAppointment();
    var selectedInterval = scheduler.GetSelectedInterval();
    apt.SetStart(selectedInterval.GetStart());
    apt.SetEnd(selectedInterval.GetEnd());
    apt.AddResource(scheduler.GetSelectedResource());
    apt.SetLabelId(0);
    apt.SetStatusId(0);
    return apt;
}
See Also