jQWidgets Forums
jQuery UI Widgets › Forums › Scheduler › Disable graggable and resizable appointment
Tagged: javascript scheduler, jquery scheduler, scheduler
This topic contains 4 replies, has 3 voices, and was last updated by Peter Stoev 9 years, 2 months ago.
-
Author
-
Hello,
I would like to disable drag and resize facilities on the whole scheduler.
For this, I use the setAppointmentProperty method of the scheduler on each appointment.It works nicely for most of the appointments.
Meanwhile, if an appointment is repeated, it does not works… Each single occurrence of this appointment are draggable and resizable.How can I disable drag and resize events for all appointments, whatever they are repeated or not ?
Many thanks.
Hi MichaelIP,
You can probably try during the initial data binding to disable these. Define the appointment’s fields and define the values in the data source as well.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHello Peter,
Thanks for your answer.
I tried and unfortunately, it does not works.
My appointments are loaded from our database through JQuery.ajax method.
On successful load, I push every appointment in an array. Before pushing the element, I set the draggable and resizable properties to false. Then, I set the source property of the scheduler to a new dataAdapter.
Whatever the type of appointment (repeated or single), they are resizable and draggable.If meanwhile, I had after loading a timeOut function which will for each appointment set the draggable and resizable properties using the setAppointmentProperty method, single appointment are not draggable either resizable. But repeated appointments are still !
Nether mind, this is not a blocking problem. As appointments can’t be saved after resize or drag, end-user will just have to reload the scheduler to return to correct appointments…
Many thanks.
Hello guys
Michael i have the same problem as you and i did the same, disable it with the setAppointmentProperty. But that method take to long, because i have thousand of appoinment.
Peter Stoev
there any other way disable it, other than one by one with the setAppointmentProperty??Hi rccd,
Disable it while you data bind the Scheduler i.e add draggable appointmentdatafield and add such field in the source object of the data adapter and bind it to data where draggable has false values.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.