Skip to main content
Nintex Community Menu Bar
Question

Prevent dragging calendar events

  • July 10, 2024
  • 6 replies
  • 0 views
  • Translate

Forum|alt.badge.img+8

Community/Skuid,
My users are using touhcsreens and I have noticed them dragging events on their calendars on accident. How can I disable this awesome feature on our calendar components?


Did this topic help you find an answer to your question?

Forum|alt.badge.img+13

Go into each of your Calendar Event Sources’ “Event Behavior” properties and un-check “Allow Editing of Events”

Translate

Forum|alt.badge.img+8

They don’t have that enabled and it still allows for dragging. I am using the month view. Any other ideas?

Translate

Forum|alt.badge.img+8

They don’t have that enabled and it still allows for dragging. I am using the month view. Any other ideas?


Translate

Forum|alt.badge.img+13

As of Banzai Update 7 Patch 4 (click here to get the link from Skuid Releases), you can disable dragging/dropping of Calendar Events in Month View for a particular Calendar by going to to the Month View’s settings and un-checking Enable Dragging/Dropping of Events :

This will disable dragging/dropping of Events from any Event Source.

Translate

Forum|alt.badge.img+6

I have a different use case with regards to drop and drop in the calendar.

We need to allow only certain appointments to be draggable/droppable but not All.

I was able to get get the conditional Editing of the Appoinments but don’t know how I would stop a certain event from being dragged (updated) using javascript.

Any thoughts?  Is this doable?

Thank you

Translate

Forum|alt.badge.img+6

ok,
I came up with a solution:  

I tapped into the Row In Model updated action for the calendar model.  In there you can have logic to figure out if you want to allow the event to be edited via draggin and calling on the model.cancel() method to cancel the drag.   


if ( addingNewEvent == false && window.calendar.updatingEventWhatId !== window.calendar.currentClientId ) {    if ( initiatorId !== “Events”) {
        params.model.cancel();
        UTILS.displayPopup(“Cannot Modify Appointment!”, “Only appointments belonging to the current client can be modified!.”);        
    }
}

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings