Originally reported on Google Code with ID 2277
I'm trying to get dragScroll (http://fullcalendar.io/docs/event_ui/dragScroll/) working,
but when a dragged event reaches the edge of the calendar, nothing happens.
jsFiddle - http://jsfiddle.net/9c2hdzd1/1/
Reported by [email protected] on 2014-09-05 10:57:46
Imported with 3 stars.
Could you please describe what you observe versus the expected behavior?
Reported by [email protected] on 2014-09-05 11:27:42
I think the following scenario describes the problem which the 'dragScroll' option solves:
[1] Open http://jsfiddle.net/wijgerden/w0546y25/ and adjust the layout such that the
Result pane shows the whole calendar; and observe the vertical scrollbar on 'agendaWeek'
to scroll the visible times
[2] Start dragging an event, like 'Lunch' and keep it (while dragging) on either the
bottom edge or the upper edge of the calendar area that has the scrollbar
[3] Observe how the scrollbar marker and associated times adjust to allow you to drag
the event into time slots not previously visible
[4] Change the 'dragScroll: true,' (default) to 'dragScroll: false' and run the fiddle
again (or for convenience: use http://jsfiddle.net/wijgerden/w0546y25/5/ which is an
update with this change done)
[5] Repeat step [2]
[6] Observe how it does *NOT* change the visible area of time slots...
Reported by [email protected] on 2014-09-05 11:46:43
Thanks for the reply.
The behaviour I'd have expected is for the calendar to go to the previous or next period
when the dragged event reaches either the left or right hand edge or the calendar area.
I.e. on the example at http://jsfiddle.net/9c2hdzd1/1/ , I would expect the calendar
to advance to Sep 8 - 14 2014 when the event reaches the right hand edge.
Hope that makes sense.
Reported by [email protected] on 2014-09-05 12:17:25
Understand your expectation, but this is AFAIK not implemented. Perhaps you could look
into detecting that something is dragged outside of the calendar (have something left/right
of it that fires some event) and then advance the calendar through code.
For this issue though, I would recommend it to be closed as Invalid; though perhaps
the concept of 'scroll container' can be better explained in the documentation, on
or linked from http://fullcalendar.io/docs/event_ui/dragScroll/
Reported by [email protected] on 2014-09-05 12:24:41
As @van.wijgerden has stated, this is not what dragScroll is meant to do. I'll repurpose
this ticket to represent what you describe and see if more people demand it.
Reported by adamrshaw on 2014-09-05 19:44:12
AcceptedI have been looking for exactly this feature. It would greatly increase fullcalendar's
usability in situations where event dates may change. I would be extremely grateful,
as I'm sure many others would, if it were to be implemented.
(I have tried to implement this myself but unfortunately to no avail)
Reported by kcaow.code on 2014-10-20 13:18:21
Issue 2583 has been merged into this issue.
Reported by adamrshaw on 2014-10-31 02:48:55
Searched all over but this is the only place I can find what I want to do - is there
any way to do this?
Reported by smiffy0sm on 2014-12-06 16:28:48
This proposed so useful , exchange month automatically when the intem this off the edge
. I'll try to do something about it.
Reported by [email protected] on 2014-12-15 18:15:59
+1 for me. I've implemented something very basic and roughly similar in my application but its not suitable for directly incorporating here since it is built using angular (like the rest of my system).
+1 for me. I would also like this to work in all views.
+1
+1
Does anyone have any snippet/patch for this feature? We really need this
+1
+1
+1; I really need this for my application. My client needs to be able to reschedule events to different weeks sometimes and that is currently not possible without first canceling the event, and making a new one in another week which is tedious.
+1
+1
+1
+1
+1
+1
I want this for my application
+1
+1
Hey,
I've been doing some hacking on this but I am currently stuck. For now I'm capable of moving to the next (resp. previous) week when moving an event on the right (resp. left) of the calendar however refreshing the view stops the dragging and the event is back to it's original place. At this point the segment holding the event is not displayed anymore, thus it seems quite complex to restart the dragging.
I have four ideas on how to overpass this limitation :
segment to restart the dragging with the right event (what if there are several events at the same time) ?view, seg, DropLocation and el)Any thoughts ?
There is my small hack, running on fullcalendar 3.4.0 (near line 3725) :
// Called when the drag moves
handleDrag: function(dx, dy, ev) {
var hit;
DragListener.prototype.handleDrag.apply(this, arguments); // call the super-method
hit = this.queryHit(getEvX(ev), getEvY(ev));
if (!isHitsEqual(hit, this.hit)) { // a different hit than before?
if (this.hit) {
this.handleHitOut();
}
if (hit) {
this.handleHitOver(hit);
}else{
// Detect if out from left or right
i = 0;
hitl=null;
hitr=null;
while(!hitl && !hitr && i < 100){
hitl = this.queryHit(getEvX(ev)+i, getEvY(ev));
hitr = this.queryHit(getEvX(ev)-i, getEvY(ev));
i = i + 10;
}
if(hitl){
console.log(this);
console.log(this.subjectEl);
// TODO drop event 1 week before
// view / seg ?
// view.reportSegDrop(seg, dropLocation, _this.largeUnit, el, ev);
this.component.calendar['prev']();
// TODO : restart drag
console.log("left");
console.log(this.subjectEl);
}else if(hitr){
$().find('.fc-next-button').click();
console.log("right");
}
}
}
},
Any news about this feauture we really need it !!!
+1
+1 I really nedd this feature too.
+1 This feature will be very useful.
+1
+1
+1 Could really do with this feature!
+1 This feature will be very useful.
+1
+1
+1
Hey everyone,
I figured something that works for me and it's very simple - Also i only need to work with full 24hour slots, so it probably won't be useful to everyone here.
1. Changed the timelineFiveDays duration to 14 days, like this:
views: {
timelineFiveDays: {
type: 'timeline',
duration: { days: 14 }
}
}
2. Added dateAlignment: 'week' to the code so it wont show the Current day + 14 days ahead
Now it looks like this:

So theres week 10 and 11 - What i can do is drag an event from Week 10 to 11 and then press the Next button ( > ) and it will show me week 11 and 12, like this:

Hope this was helpful to anyone o7
how do i drag events from one month to another?
Any updates? This still isn't in the full calendar yet. Please add this feature, it is crucial +1
any news on this?
Hoping that this is added in the next version
Hi, anything new on this regard? Is there any estimation for this feature to be released? Are you guys planning on adding this feature in the future?
Man this would be a great feature. I am wondering if it can be done in a custom view of some sort. I don't have time to follow that rabbit hole just yet but will hopefully have a look at it soon. Anyone of the current devs have any info on this feature?
Most helpful comment
Hey,
I've been doing some hacking on this but I am currently stuck. For now I'm capable of moving to the next (resp. previous) week when moving an event on the right (resp. left) of the calendar however refreshing the view stops the dragging and the event is back to it's original place. At this point the segment holding the event is not displayed anymore, thus it seems quite complex to restart the dragging.
I have four ideas on how to overpass this limitation :
segmentto restart the dragging with the right event (what if there are several events at the same time) ?view,seg,DropLocationandel)Any thoughts ?
There is my small hack, running on fullcalendar 3.4.0 (near line 3725) :