search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Add days to calendar while onEventMoving or onEventResizing

Asked by B.
8 years ago.

I'm trying to get the calendar to extend when moving or resizing an event. Not sure if this can be done, but I got some errors while I tried:

onEventMoving: function(args) {
    if (args.end >= $scope.dp.visibleEnd()) {
        $scope.dp.days = $scope.dp.days + 5;
        $scope.dp.update();
    }
}

The errors are attached in the screenshot below. Not sure if I need to do anything extra or not.

Answer posted by Dan Letecky [DayPilot]
8 years ago.

Unfortunately, this scenario is not supported at the moment.

Calling .update() redraws everything and the context is lost (including the drag and drop operation in progress).

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.