ui-calendar icon indicating copy to clipboard operation
ui-calendar copied to clipboard

REFRESH CALENDAR

Open EmmanuelKzsky opened this issue 9 years ago • 4 comments

hi , i have a little issue .

By default i set in the config slot duration on agendaday '00:30:00' and all is ok.

But now im searching how i can change the slot duration and refresh the calendar .

Im using

uiCalendarConfig.calendars['myCalendarDay'].fullCalendar('render')

but i dont have any response the calendar still same

Anyone know how i can solve this?

EmmanuelKzsky avatar May 24 '16 19:05 EmmanuelKzsky

for refresh I use

uiCalendarConfig.calendars[calendar].fullCalendar('refetchEvents');

It works for me but, I'm not sure it is proper way

noizbuster avatar May 27 '16 07:05 noizbuster

I do it also, don't forget to set the attribute in your html, eg.

 <div calendar="calendar" ui-calendar="uiConfig.calendar" class="span8 calendar" ng-model="eventSources"></div>

And then ( for example)

uiCalendarConfig.calendars['calendar'].fullCalendar('refetchEvents');

@zirius666 Please close the issue if it's okay

NicoJuicy avatar Sep 29 '16 08:09 NicoJuicy

Hi,

I'm facing a similar problem. but even if i dynamically change the uiConfig object and re-render the calendar as mentioned above, the slotDuration doesnt update.

This is the code i use to update the config object. $scope.uiConfig.slotDuration = "00:15:00";

This, to re-render the calendar $scope.reRenderCalender = function (calendar) {if (uiCalendarConfig.calendars[calendar]) { uiCalendarConfig.calendars[calendar].fullCalendar('refetchEvents');}}; $scope.reRenderCalender("appointmentCal");

I fetch all my events using server calls. Don't know if that could be an issue.

adithya-krishna avatar Oct 03 '16 09:10 adithya-krishna

I think it must be a bug.. I have mentioned about it here.

any solution ?

Mario-Boss avatar Aug 21 '17 07:08 Mario-Boss