fullcalendar

FullCalendar events from asp.net ASHX page not displaying

≡放荡痞女 提交于 2019-12-01 06:25:24
问题 I have been trying to add some events to the fullCalendar using a call to a ASHX page using the following code. Page script: <script type="text/javascript"> $(document).ready(function() { $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month, agendaWeek,agendaDay' }, events: 'FullCalendarEvents.ashx' }) }); </script> c# code: public class EventsData { public int id { get; set; } public string title { get; set; } public string start { get; set; }

Using FullCalendar how can I adjust the height of the fc-event div?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 06:19:05
问题 I am using FullCalendar to display some events, but it is clipping the name of the event in week and day mode. It appears fullcalendar is setting the height of the fc-event div to 12px, but I need it to be 20px: <div class="fc-event fc-event-skin fc-event-vert fc-corner-top fc-corner-bottom" style="position: absolute; z-index: 8; top: 314px; left: 441px; background-color: green; color: white; width: 112.94999999999999px; height: 12px; "> Is it possible to set the height of the fc-event div?

FullCalendar - Images as events

爱⌒轻易说出口 提交于 2019-12-01 06:16:30
Looking to use Full Calendar and to include images as events and draggable. In short, would love to see how this example https://fullcalendar.io/js/fullcalendar-3.0.1/demos/external-dragging.html would work with small thumbnails instead of the text "My Event 1, My Event 2" etc. And have that image show up on the calendar. Thanks in advance. Bernardo OS You can add any image url to your eventObject by adding the attribute "imageurl" inside of the events definition (if you just want the image, don't specify a title): events: [ { title : 'event', start : '2016-10-12', end : '2016-10-14', imageurl

How to adjust width and position of events in jQuery Full Calendar in week-view and day view

∥☆過路亽.° 提交于 2019-12-01 06:01:56
I am using fullcalendar in one of my Rails projects to render events on calendar. The jsfiddle shows the scenario. I am able to adjust the width but it does not modify the position of events in the same row next to each other. Is there a callback or method which would adjust the position of events when the width is modified Take a look at this fiddle: http://jsfiddle.net/100thGear/jRFYE/ I used the eventRender callback to alter the offset of the next event(s). Hope this helps and gives you an idea of how to proceed. Why don't you use the className attribute of the event object to set this? You

FullCalendar - Images as events

≯℡__Kan透↙ 提交于 2019-12-01 05:32:36
问题 Looking to use Full Calendar and to include images as events and draggable. In short, would love to see how this example https://fullcalendar.io/js/fullcalendar-3.0.1/demos/external-dragging.html would work with small thumbnails instead of the text "My Event 1, My Event 2" etc. And have that image show up on the calendar. Thanks in advance. 回答1: You can add any image url to your eventObject by adding the attribute "imageurl" inside of the events definition (if you just want the image, don't

How to edit width of event in FullCalendar?

眉间皱痕 提交于 2019-12-01 04:45:11
This seems incredibly easy, but I have spent half a day bashing my head against the wall trying to figure out why my fullcalendar events are showing only at 77px, when the width of the cell(month view) seems to be either 90px or higher. I have tried modifying the fc-event css rule, but it seems like javascript is writing some inline styles into the calendar, overwriting these styles. I can't seem to find out where these styles are getting written! Can anyone who has customized fullcalendar give some insight? It is running as a page on a wordpress blog, not sure if this has anything to do with

Fullcalendar - Can we add custom data to our event Json Data?

China☆狼群 提交于 2019-12-01 04:39:38
I want to send a type in my Event Json Response. Here is my code: $('#calendar').fullCalendar({ eventSources: [ {"id":"46_l","title":"CustomEvent-Chargement","start":"2013-12-02","end":"2013-12-03","className":"customEventsClass","type":1}, {"id":"46_d","title":"Custom Event-Livraison","start":"2013-12-11","end":"2013-12-12","className":"customEventsClass","type":2} ] }); You see I send a type in JSON Response array, is this possible? What parameter can we use for sending our custom data? Try It with events: instead of eventSources: $('#calendar').fullCalendar({ events: [ {"id":"46_l","title":

Externally triggering FullCalendar's 'dayClick' method?

别来无恙 提交于 2019-12-01 04:13:54
I'm using Arshaw's FullCalendar and I'm looking to simulate a user clicking on a cell once the page has loaded. I'm trying to do this so I could potentially go to a URL such as /Calendar/AddEvent and the calendar will automatically open a dialog with my add event form in. Take the following set up: ( Fiddle here ) HTML <div> <div id="calendar" data-year="2013" data-month="04" ></div> </div> jQuery $('#calendar').fullCalendar({ firstDay: 1, selectable: true, dayClick: function (start, allDay, jsEvent, view) { alert('You clicked me!'); } }); By default, the cell for today has the class .fc-today

fullCalendar 1.5.3 multiple events created, unable to remove unselected events

时光总嘲笑我的痴心妄想 提交于 2019-12-01 04:12:38
问题 Using fullCalendar, I allow a user to select a day in month view in a big calendar (#cal_big) and the corresponding small calendar in day view, with hours shown (#cal_small) will be displayed. Whenever the user selects an event (an hour or block of hours) in #cal_small, I will display a confirm/cancel modal. The confirm/cancel modal allows the user to either confirm the booking or cancel the booking (which semantically means that the user does not really want to book that slot after all). If

FullCalendar auto-height in week view

北城以北 提交于 2019-12-01 03:09:22
I need to have a calendar in week mode which would take all the width it can take and take all the height it needs to not have scrollbars. If I keep default settings height: auto, aspectRation: 1.35 , I see a vertical scrollbar: If I change aspectRatio to 1, scrollbar disappears but I see a useless empty area at the bottom: Is there any way to fix it except guessing the aspectRatio (which is not a case for me as minTime and maxTime are dynamically changed so the conent height changes)? Edit: Fullcalendar v2.1.1 http://jsfiddle.net/3E8nk/560/ contentHeight: 'auto', Solution for old versions?