-
Notifications
You must be signed in to change notification settings - Fork 723
Issues with event rendering (they disappear if we switch with previous/next) #163
Comments
I also have the same issue here. The first display works fine but as soon as I change view or navigate using prev/next controls, events disappear from the calendar. However, there are still presents in my event source Also, when using Here is some informative code about my context : %div{ "ui-calendar" => "config.calendar", "ng-model" => "eventSources", "calendar" => "calendar" } # Initialize
$scope.events = []
# Get events from api end point
$scope.getEvents = ->
Event.all.query {}, (eventsSources) ->
angular.forEach eventsSources, (sources, index) ->
angular.forEach sources, (event, index) ->
$scope.events.push event
# Add it to sources
$scope.eventSources = [$scope.events] |
Ok I did a small hack (ugly) in order to make this work. I'm using the fullCalendar $scope.config =
calendar:
events: $scope.getEvents $scope.events = []
$scope.getEvents = (start, end, timezone, callback) ->
if $scope.events.length > 0
callback $scope.events
else
events = []
Event.all.query {}, (eventsSources) ->
angular.forEach eventsSources, (sources, index) ->
angular.forEach sources, (event, index) ->
events.push event
callback events
$scope.events = events
$scope.eventSources = [$scope.events] That works in my case for now. If anyone have a better approach, that would be great. |
You can fix that changing calendar.js line 252.
But there's already an open issue, check #99 |
Sweet find. Could you please open a ticket on the fullcalendar repo and
|
Adding 'true' fixed the problem, but another issue arise. It's showing duplicate events in my calendar. |
@VerzatileTom can you open a new issue and send a plunker along with that please? I have not seen that bug yet. Thanks. I am going to close this issue. |
it works good now but you have to use stick property for event: |
@joshkurz It's my silly mistake, i added the events the wrong way. I'm good now. |
Hello everyone ! I'm encountering issues about event rendering on the calendar.
Does anyone has a real fix for this issue?
Best regards
The text was updated successfully, but these errors were encountered: