-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh events on calander #177
Comments
@Raagu1993 Could you provide your code to demonstrate how do you load the events? The calendar watches the eventSource variable, once you fetch the events, you assign them to the eventSource in your callback method. The calendar should be able to display them. |
I am geting events by calling getEvents function and pushing to "$scope.calendar.eventSource". Kindly find the below code for your reference. //Get All events Start //Get All events End $scope.calendar = { |
@Raagu1993 Directly pushing element to eventSource doesn't take effect. Note In the current version, the calendar controller only watches for the eventSource reference as it's the least expensive. That means only you manually reassign the eventSource value, the controller get notified, and this is usually fit to the scenario when the range is changed, you load a new data set from the backend. In case you want to manually insert/remove/update the element in the eventSource array, you can call broadcast the 'eventSourceChanged' event to notify the controller manually. |
When I redirect to a calendar page I am not seeing any events on week view from the back end. when I click on month view and come back to week view events are loading. Could you please suggest me how to get events in the initial view.
I am new for this technology. so, please suggest me with clear explanation.
The text was updated successfully, but these errors were encountered: