Can anybody tell me how to stop dragging / resizing the events where event.id > 100
? Only those events should be non draggable.
Updated with Code Sample:
eventRender: function(event, element) {
if (event.id > 100) {
event.disableDragging();
event.disableResizing();
}
element.qtip({
content: GetEventToolTip(event),
position: { corner: { tooltip: 'bottomLeft', target: 'topMiddle'} },
style: {
border: {
width: 1,
radius: 5
},
padding: 5,
textAlign: 'left',
tip: false,
name: event.iscustom == 'True' ? 'cream' : 'dark'
}
});
}
Thanks.
I did not have success with the methods shown here. I ended up hacking fullcalendar.js to add a
noDragging
option for events, which was actually extremely easy:original:
changed it to:
Just added the check for
event.noDragging
.You have to hack fullcalendar.js
uncomment lines
replace functions:
Now you can enable/disable resize and dragging for every event as you like.
Use these tags when creating your fullcalendar to disable dragging or resizing.
This is the best solution:
in editable just write false and it wont be able to drag and drop editable: false