jQuery UI Widgets Forums Scheduler setAppointmentProperty for all Appointments

This topic contains 7 replies, has 2 voices, and was last updated by  74bit 5 years, 6 months ago.

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

  • 74bit
    Participant

    Hi,

    is it possible to set properties (eg’ ‘dragable’: false) for all appointments at once?

    thanks,
    Witold


    Peter Stoev
    Keymaster

    Hi Witold,

    If you have draggable property in your data source.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    74bit
    Participant

    Does not seem to to work for the “readOnly” Property. It’s also not mentioned in “appointmentDataFields”


    74bit
    Participant

    Sorry, my mistake. Works fine. But it’s really not mentioned in the documentation.

    • This reply was modified 5 years, 7 months ago by  74bit.
    • This reply was modified 5 years, 7 months ago by  74bit.

    Peter Stoev
    Keymaster

    Hi Witold,

    The property is named draggable and IT IS explained in the Documentation – http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxscheduler/jquery-scheduler-api.htm

    Sets or gets the appointments data fields. A data field should match a field defined in the dataAdapter’s source object. For example: If your have a data field called “start” in your source object, you should add ‘from: “start”‘ in the appointmentDataFields definition.

    allDay – boolean field. Defines whether the appointment is all day appointment.
    background – string field. Expects Hex string. Defines the appointment’s background.
    borderColor – string field. Expects Hex string. Defines the appointment’s border color.
    color – string field. Expects Hex string. Defines the appointment’s text color.
    description – string field. Defines the appointment’s description.
    draggable – boolean field. Defines whether the user can drag the appointment.
    from – jqxDate field. Defines the appointment’s start.
    hidden – boolean field. Defines whether the appointment is displayed.
    id – string/number field. Defines the Id of the appointment.
    location – string field. Defines the appointment’s location.
    recurrencePattern – string field. Defines the appointment’s recurrence rule. Ex: “FREQ=DAILY;”. List of supported keywords:
    FREQ – “DAILY” / “WEEKLY” / “MONTHLY” / “YEARLY”. The FREQ rule part identifies the type of recurrence rule. This rule part MUST be specified in the recurrence rule.
    COUNT – Number. The Count rule part defines the number of occurrences at which to range-bound the recurrence.
    UNTIL – String like “UNTIL=20150919T210000Z”. The UNTIL rule part defines a date-time value where the recurrence ends.
    BYDAY – String like “MO,TU”. The BYDAY rule part specifies a COMMA character (US-ASCII decimal 44) separated list of days of the week; MO indicates Monday; TU indicates Tuesday; WE indicates Wednesday; TH indicates Thursday; FR indicates Friday; SA indicates Saturday; SU indicates Sunday. Each BYDAY value can also be preceded by a positive (+n) or negative (-n) integer. If present, this indicates the nth occurrence of the specific day within the MONTHLY or YEARLY RRULE. For example, within a MONTHLY rule, +1MO (or simply 1MO) represents the first Monday within the month, whereas -1MO represents the last Monday of the month.
    BYMONTHDAY – String like 15, 30. The BYMONTHDAY rule part specifies a COMMA character (ASCII decimal 44) separated list of days of the month. Valid values are 1 to 31
    BYMONTH – Number like 1. The BYMONTH rule part specifies a month of the year. Valid values are 1 to 12.
    INTERVAL – Number like 1. The INTERVAL rule part contains a positive integer representing how often the recurrence rule repeats. The default value is “1”,
    Examples: “FREQ=WEEKLY;BYDAY=MO,WE”, “FREQ=MONTHLY;BYMONTHDAY=10,15;COUNT=20”, “FREQ=DAILY;INTERVAL=3;COUNT=10”, “FREQ=MONTHLY;BYDAY=-2FR;COUNT=7”, “FREQ=YEARLY;COUNT=30;WKST=MO;BYMONTH=3”
    recurrenceException – string field. Defines the exceptions of the recurrence rule. The bound value should be a string or comma separated list of Date strings. Example: “2015-11-24 09:00:00,2015-11-26 12:00:00”
    resizable – boolean field. Defines whether the user can resize the appointment.
    resourceId – string/number field. Defines the appointment’s resource.
    subject – string field. Defines the appointment’s subject.
    style – string field. Expects Hex string. Defines the appointment’s style. When defined it sets the background, border color and text color of the appointment.
    status – string field. Defines the appointment’s status. See the statuses property for available statuses.
    to – jqxDate field. Defines the appointment’s end.
    tooltip – string field. Defines the appointment’s tooltip displayed on mouse hover.
    timeZone – string field. Defines the appointment’s time zone. See timeZones for the list of timeZones.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    74bit
    Participant

    In my 2nd and 3rd post I was referring to “readOnly”


    Peter Stoev
    Keymaster

    Hi Witold,

    Ok, but that property does not matter, because you should use draggable to disable dragging.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    74bit
    Participant

    I want a scheduler only for showing events, and when I set the appointments to “readonly” I also disable double-click-to-edit.

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

You must be logged in to reply to this topic.