jQWidgets Forums

jQuery UI Widgets Forums Scheduler Prevent Events

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 6 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Prevent Events #102730

    Jorgefo
    Participant

    There is the possibility of avoiding that they can delete, create or modify an appointment, for example if the appointment already exists at that time or if that appointment does not belong to the person who is modifying it.

    The validation is on the server.

    Or the only option would be to validate and generate a deletion event on the newly created or eliminated appointment? with all the complications that this brings

    Thank you

    Prevent Events #102740

    Martin
    Participant

    Hello Jorgefo,

    You can do the validation when an appointment is added/modified/deleted and if you need to revert this operation,
    you can refresh the scheduler’s appointments before posting the change to the server.

    Here is an Example that shows how to refresh the data when an appointment is added or modified, supposed that the validation had failed.

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.