fullcalendar

very slow loading calendar events, any way to optimize?

放肆的年华 提交于 2019-12-05 17:21:46
I have a calendar that is working successfully, but the load times are very slow. Each event is rendered successfully, but the user has to wait a good 5-10 seconds when switching views or navigating through the months/weeks/days. I have shown the event loading code below, is there anything I can do to it to make it load faster? Thanks <script type='text/javascript'> $(document).ready(function () { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); var calendar = $('#calendar').fullCalendar({ //events: [{"title":"My Test Event","start":"Wed, 02

FullCalendar, how do I change the date format?

好久不见. 提交于 2019-12-05 16:51:59
I am trying to make the date format of FullCalendar dd/mm. How can I do this? I found [this][1] method, but I am not really sure how to edit it in my case. I am trying to make it so that in the dayView, the header shows the date in dd/mm format, rather than the current mm/dd American format. Is it possible to do this? Check out this link http://arshaw.com/fullcalendar/docs/text/titleFormat/ You can specify which view you want to edit through this (in your case the day view) http://arshaw.com/fullcalendar/docs/views/View_Option_Hash/ So you would probably have something along the lines of

fullcalendar backgroundColor property

早过忘川 提交于 2019-12-05 16:02:24
I'm trying to add a background color to an event but with no luck. $('#calendar').fullCalendar('renderEvent', { id: 1, title: 'hello', start: selected_date, allDay: true, color: '#FF0000', backgroundColor: '#000000' }, false); Any idea why this won't work? The border color seems to work but not the backgroundColor If you add both the stylesheets then the backgroundColor will not work. <link rel="Stylesheet" type="text/css" href="/Content/fullcalendar/fullcalendar.css" /> <link rel="Stylesheet" type="text/css" href="/Content/fullcalendar/fullcalendar.print.css")" /> After removing the

Mutliple business hours in full calendar with two shifts each day

纵饮孤独 提交于 2019-12-05 15:37:09
I have integrated full calendar into my website. One of my requirement is to have business hours fetch from database and render it on the calendar. So basically each day has two shifts(Morning and evening). I need to be able to create an array of business hours with the values getting populated from database. Out of the box, I'm able to use the below code to render a common business hours. businessHours: { start: '10:00:00', end: '16:00:00', dow: [0,1,2,3,4,5,6] }, I want to achieve something like this: businessHours:[ { start: '10:00:00', end: '13:00:00', dow: [0] }, { start: '14:00:00', end:

FullCalendar showing event in month view but not day and week view?

家住魔仙堡 提交于 2019-12-05 14:42:32
I'm working with FullCalendar fetching events from a json feed. However, I've run into a problem. The calendar shows my event just fine in the month view, but when going to the day/week in day-view and week-view, the even is not shown? My initialization of fullcalendar looks like this: var options = { header: { left: 'prev, next', center: 'title', right: 'month,agendaWeek,agendaDay' }, allDaySlot: false, monthNames: ["Januar","Februar","Marts","April","Maj","Juni","Juli", "August", "September", "Oktober", "November", "December" ], monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun','Jul',

Timezone for dropped event in FullCalendar

孤者浪人 提交于 2019-12-05 14:07:38
I'm implementing fullcalendar and struggling with a timezone issue. Here is the code: $('#calendar').fullCalendar({ //re-initialize the calendar header: h, defaultView: 'agendaWeek', // change default view with available options from http://arshaw.com/fullcalendar/docs/views/Available_Views/ slotMinutes: 15, editable: true, lang: 'pl', timezone: 'Europe/Warsaw', droppable: true, // this allows things to be dropped onto the calendar !!! drop: function(date, allDay) { // this function is called when something is dropped // retrieve the dropped element's stored Event Object var

FullCalendar.js - “there was an error while fetching events”

和自甴很熟 提交于 2019-12-05 10:42:10
I'm using FullCalendar.js to display Google Calendar events from multiple sources. It's been working OK up until today. For some reason FullCalendar started popping up the "there was an error while fetching events" error message and all the events are obviously gone. Here is a jsfiddle. http://jsfiddle.net/mlk4343/1wko0z1j/1/ $(document).ready(function() { $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, contentHeight: 600, eventMouseover: function(calEvent, jsEvent) { var tooltip = '<div class="tooltipevent">' + calEvent

How to select multiple date ranges from Fullcalendar?

家住魔仙堡 提交于 2019-12-05 08:21:17
I am trying to make a calendar feature in which a user can block off multiple date ranges by just selecting the start and end dates. I was thinking of using FullCalendar but I am not sure how to proceed with this. I did see some examples of how to block some dates from being selected by adding my check on dayClick but these do not deal with date ranges. I would appreciate any help, I am not really looking for an entire source but some suggestions on how to go about this. This is a multi-part problem. Here's the basic idea. Allow the user to make a click+drag selection with selectable: true In

Full calendar business hours

只谈情不闲聊 提交于 2019-12-05 07:51:47
I am trying to use Business hour option , but i cant able to reflect the changes. i want to display multiple business hours here is the code ; $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, defaultDate: '2014-11-12', editable: true, eventLimit: true, // allow "more" link when too many events businessHours: [ { start: '10:00', // a start time (10am in this example) end: '12:00', // an end time (12pm in this example) dow: [ 1,2,3,4 ] // days of week. an array of zero-based day of week integers (0=Sunday) // (Monday

How to add events to Google Calendar using FullCalendar?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 07:33:02
问题 I'm trying in my FullCalendar add events to my google calendar, followed the example below, How to add events to Google Calendar using FullCalendar but does not work me, if anyone knows how to do please help. this my code <!DOCTYPE html> <html> <head> <meta charset='utf-8'/> <link href='../fullcalendar.css' rel='stylesheet'/> <link href='../fullcalendar.print.css' rel='stylesheet' media='print'/> <script src='../lib/moment.min.js'></script> <script src='../lib/jquery.min.js'></script> <script