jQWidgets Forums

jQuery UI Widgets Forums Scheduler Unable to add appointment to new resource

This topic contains 2 replies, has 2 voices, and was last updated by  gduncan 7 years, 2 months ago.

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

  • gduncan
    Participant

    I’m setting up a new application using the jqxScheduler. I have a 6 rooms in which I need to be able to book appointments. My problem is that the resource is tied to a field in the appointment, so until you have an appointment with the field “Room: ‘Room 1′” you can’t book an appointment into Room 1. The drop down list in the ‘Add/Edit’ dialog that displays the resources doesn’t contain that value until there is already an appointment.

    How do I get around this?


    Stanislav
    Participant

    Hello gduncan,

    You can use ‘hideAppointmentsByResource‘, it hides an appointment but you can still select it’s ‘room’.

    You can create basic appointments and hide them, after that using only their ‘rooms’.

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/


    gduncan
    Participant

    I was able to fix this by hard coding the resources > source. I thought you had to bind the resource to a dataField. I was able to get around it this way:

        resources:
         {
              colorScheme: "scheme02",
              source: ['Room 1', 'Room 2', 'Room 3', 'Room 4', 'Room 5', 'Room 6'] //new $.jqx.dataAdapter(source)
         },
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.