The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientAppointment.SetStart(start) Method

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

Declaration

SetStart(start: Date): void

Parameters

Name Type Description
start Date

A JavaScript Date object representing the appointment start.

Remarks

Use the ASPxClientAppointment.GetStart method to obtain the start for the client appointment.

Tip

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E3786.


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