Questions Tagged javascript
Adding resources breaks cellWidthSpec="Auto"
I have a DayPilot scheduler on my app. When I set up the component originally, it is set with cellWidthSpec="Auto" and everything is set fine. I later retrieve my resources via Ajax and set them into...
Scheduler: Changing HeaderHeight
I see in the documentation the headerHeight parameter, but when I set it, it is always rendered as 20px. Am I missing something? I'm using the Angular implementation with the attached config
In Month view, events longer than one week (8 days+) only display on the last week row.
Answered: This issue is now fixed in the new 1.2 release: http://javascript.daypilot.org/daypilot-lite-for-javascript-1-2/ Let me know if there is any problem.
Modifying the args.cell.start, args.cell.end properties
Answered: Unfortunately the cell duration must be fixed for the whole day in the Calendar. In the Scheduler you can create a custom timeline that will be non-linear: http://doc.daypilot.org/scheduler/timeline/
onCellClick() or onCellDoubleClick() methods Event Calendar Pro javascript
Answered: If you click a cell TimeRangeSelect/TimeRangeSelected event will be fired: http://api.daypilot.org/daypilot-scheduler-ontimerangeselect/ http://api.daypilot.org/daypilot-scheduler-ontimerangeselected...
Is horizontal scroll bar available with event calendar(all view types) control
Answered: Yes, you can use fixed column width: http://doc.daypilot.org/calendar/fixed-column-width/
How to resize the resource columns
Answered: Unfortunately, columns resizing is not supported at the moment.
The timeHeaderCellDuration property does not produce specified time interval cells
Answered: This issue is now fixed in the latest build (7.9.1426). The jsfiddle now works fine. You can customize the time header HTML using onBeforeTimeHeaderRender: http://doc.daypilot.org/calendar/time-heade...
Switching event calendar(javascript) from 'Resources' and 'Days'/'Week' not updating the headers
Answered: It's now fixed in the latest build (7.9.1428). Just note that .init() is called automatically from the jQuery plugin. The second call to .init() is ignored. This means the following part of code has ...
Multiple timezone view of Scheduler
Answered: Provided that all dates are GMT you can add a secondary time header that will display another time zone. Just override onBeforeTimeHeaderRender and update the HTML as needed. The limitation is that t...
IE 8 + 11 Problem: No Events
Answered: It looks like the problem is the timeline. As far as I can see the time header doesn't include any cells. You can check whether this is a display-only issue by checking dps.itline array in the consol...
Different Colours for events in Scheduler
Answered: Something like this works in c#: protected override void OnBeforeEventRender(BeforeEventRenderArgs e) { if (Boolean.Parse(e.Tag["CheckedIn"])) e.BackgroundColor = "#9FF59F"; if (Boolean.Parse(e.Tag["...
Current time in Scheduler
Answered: I solved this with Seperators (http://doc.daypilot.org/scheduler/separators/) dp.separators = [{color: "Green", width: 2, location: new DayPilot.Date()}]; dp.update(); setInterval(function () { dp.se...
Javascript Scheduler Rows Auto Height
Answered: Unfortunately, it's not possible to stretch the row height automatically because it's based on the event box height and the number of overlapping events. However, it's possible to use heightSpec = "M...
Last cell has no right border.
Answered: It's now fixed in the latest sandbox build (7.9.1384): http://javascript.daypilot.org/sandbox/scheduler/ An official SP release will be available early next week.
End Date Incorrect - Too Long When Selecting, Too Short When Rendering
Answered: Since v7.9 (http://javascript.daypilot.org/daypilot-pro-for-javascript-7-9/) there is an option to treat the end date as date only: http://api.daypilot.org/daypilot-scheduler-eventendspec/ At this mo...
Prevent moving between resources
Answered: You should set .moveVDisabled property of the event to true: http://doc.daypilot.org/scheduler/limit-event-moving/ You can do it directly in event data object or using onBeforeEventRender event handl...
Message-Bar not disappearing completely
Answered: Daniel, I confirm the bug. It's fixed now in build 7.9.1312: http://javascript.daypilot.org/sandbox/ It can be tested in the JS console:
dp.message("one"); setTimeout(function() {dp.message("two");...
scalehours in 30 minutes
Answered: In the Scheduler, you can use the following to get 30-minute time slots:
dp.scale = "CellDuration";
dp.cellDuration = 30;
See also: http://doc.daypilot.org/scheduler/scale/ http://doc.daypilot.o...
Ability to add images on the events
Answered: You can customize the event HTML using onBeforeEventRender event: Scheduler http://doc.daypilot.org/scheduler/event-customization/ Calendar http://doc.daypilot.org/calendar/event-customization/ Month...
Keep scroll bars always visible
Answered: The solution would be to let the scheduler fill the window/viewport so you can always reach the horizontal scrollbar at the bottom (without using the browser vertical scrollbar). Use heightSpec="Pare...
On event resize
Answered: There are two ways to do it: 1. Store the old event start and end in the args object in onEventResize (which is fired before the default action). The same object will be passed to onEventResized. The...
Row Selecting not working
Answered: It's fixed now in the latest sandbox build (7.9.1284): http://javascript.daypilot.org/sandbox/scheduler/rowselecting.html An official SP release will be available in a few days.
Can't load events from mysql
I'm setting up the calendar and I am having trouble switching from the sqlite database in the tutorial to my mysql database. I'm using the tutorial code created and populated a mysql databse using _d...
Uncaught The minimum year supported is 1
Answered: Problem solved. Was on event that fucked things up. had no date set.
Long event (multy day)
Good day, I use a DayPilot lite for Javascript, and when I create an event which will start in one week and end in another, calendar control is only render last part, but preserve a place in the firs...
Error in onScroll
Hi! I get this error: TypeError: ex.start is undefined on: $.post("backend_events.php", { start: start.toString(), end: end.toString() }, function(data) { args.events = data; args.loaded(); } ); DAni...
iPad time range selection
Hello all, When im testing my Javascript calendar, I am unable to drag, for example across 2 days, and make an event for those 2 days. I am only able to select 1 single day by pressing that day. Is t...
Uncaught TypeError: undefined is not a function error while initializing daypilot
Answered: http://geeksprogrammings.blogspot.com/2015/01/Uncaught-TypeError-undefined-is-not-a-function.html Fnally I found a solution to the error . this link provided me explanation of why and what of this er...
Local Time Client Calendar but UTC Server Side
(2014-09-02 08:42 UTC) Hello All, I am using the 'ASP.NET WebForms 7.8 SP2 (build 7.8.3169)' Calendar object. I have an issue with Local/UTC DateTime handling. I have been going though all (most?) fo...