jQuery UI Widgets Forums Scheduler jqxScheduler getAppointmentProperty Undefined

This topic contains 1 reply, has 1 voice, and was last updated by  jqwidgetsdev 5 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • jqwidgetsdev
    Participant

    Hello.

    I am having a problem reading the start date and time of an appointment.

    var subject = $(“#jqxScheduler”).jqxScheduler(‘getAppointmentProperty’, appointment.id, ‘subject’);
    var start = $(“#jqxScheduler”).jqxScheduler(‘getAppointmentProperty’, appointment.id, ‘start’);
    alert(start);

    var start is coming as undefined.

    If someone could please lend a hand that would be much appreciated.

    Thank you.


    jqwidgetsdev
    Participant

    I can answer this one myself. There is no such “start” property.

    For the benefit of others here is how to resolve the issue.

    var from = $(“#jqxScheduler”).jqxScheduler(‘getAppointmentProperty’, appointment.id, ‘from’);
    alert(from);

    Here is a list of available properties.

    appointmentDataFields Object

    {
    allDay: “allDay”,
    background: “background”,
    borderColor: “borderColor”,
    color: “color”,
    description: “description”,
    draggable: “draggable”,
    from: “from”,
    hidden: “hidden”,
    id: “id”,
    location: “location”,
    recurrencePattern: “recurrencePattern”,
    recurrenceException: “recurrenceException”,
    resizable: “resizable”,
    resourceId: “resourceId”,
    subject: “subject”,
    style: “style”,
    status: “status”,
    to: “to”,
    tooltip: “tooltip”,
    timeZone: “timeZone”
    }

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.