Questions Tagged javascript
Display Days on Time headers as clickable.
Hi, I am using the JavaScript Scheduler to build an appointment calendar application. I have two modes for the app, namely Day and Month view. I want to achieve the following : Whenever the user in t...
Deadly Memory Leak Problem
I have 5 resource and 48 events. I refresh my event every 5 seconds via websocket. When my page start , memory is 50 MB after 5 min. After half hour memory is 1 GB. 1-)How Am I gonna solve that memor...
How do I set the timezone for the scheduler/calendar ?
I have a date that start at 10 and ends at 12. But the scheduler puts it between 8 and 10. I live in Sweden so my timezone is +1 plus summer time so in total +2. How can I make the scheduler/calendar...
Problem moving events
Good Morning, I'm initializing a scheduler javascript. I have a problem when I move the data. I was trying to create a method that would allow me to avoid overlap of events. Through a Request Daypilo...
Why does calendar add event at wrong time when using BusinessHoursNoScroll
Something seems weird when switching between businesshoursnoscroll and businesshours. The time of the event is incorrect. Here is a fiddle: http://jsfiddle.net/Viktor/uf6x4hdn/1/ Side note: It would ...
Separator / Actual Time in CALENDAR control
Answered: The separators are not implemented for the calendar control but you can highlight the current cell using onBeforeCellRender event handler. You can find a new example here: http://doc.daypilot.org/cal...
Moving problem
hi, I love daypilot, really good and easy to understand. But I'm stuck. When I want to move an event to another day or another resource. The event is in two days. But when I move the event to another...
Deleting Event - Scheduler Pro, Using active area delete icon
Answered: Found the issue, per a recommendation from Dan- When using eventDeleteHandling = Update, the active area is automatically created and BeforeEventRender is not necessary. In my case, it was prohibitin...
heightSpec="Auto" not working properly
Answered: Hi Dave, Please write to support@daypilot.org and you can get the full version of the latest build by email.
onBeforeTimeHeaderRender is being run for every event when using gantt
Answered: The answer is related to you side question: "How do I add events in the fastest way ?" The fastest way is to use .events.list and .update():
dps.events.list = [{...}, {...}];
dps.update();
The ....
When switching between gantt and resources view the resource-column-width is not updated
Answered: The row header width auto-fit feature works like this: 1. It will extend the width beyond the initial width if needed. It starts from rowHeaderWidth - the new width is never smaller. 2. It stores the...
heightSpec="Auto" doesnt grow automatically
Answered: Version 7.8.932 fixes this problem: http://javascript.daypilot.org/sandbox/ See your example: http://jsfiddle.net/LsrvZ/1/
Styling the rows....??
Answered: To set the color of the cells use onBeforeCellRender: http://doc.daypilot.org/scheduler/cell-customization/ and to set the color of the row headers use onBeforeResHeaderRender: http://doc.daypilot.or...
hided children opened automatically?!
Answered: The AutoRefresh event handler doesn't do anything by itself in the JavaScript version. If you are using the MVC version than make sure that you don't reload the Resources list on the server side duri...
Scheduler timerange: why from 0 to 0 clock?
Answered: DayPilot works with exact time points: The day begins at 00:00 and ends at 24:00 (i.e. 00:00 the following day). If you want to display the end date the way you describe you need to subtract one day ...
Scheduler: clickable altough its disabled
Hi! When i click on a event which is "clickDisabled = true;", daypilot handle it like it is "dragged". The Event is "marked" and the mousecurser moved to the "cross". In that case you cant move the e...
Scheduler: optical subdivision
HEy Dan! My scheduler got about 50 REsources. Some of them are grouped by something. So there are f.a. 5 resources i want to edge. But not only the names of the res., also the whole row. It would be ...
Styling Indicator and Row Selecting ?
Answered: The new theme elements that were introduced in 7.8 are defined like this (in the built-in theme, i.e. "scheduler_default"). You can copy these styles to your theme. The other themes in the package an...
Scheduler multiuser- able?
Answered: Solving record locking is far from simple in web applications. See the following SO question for a brief outline of the problem: http://stackoverflow.com/questions/3358957/blocking-a-record-from-edit...
Event Resize: Stepless ?
Answered: You can turn of the "snap to grid" behavior using .snapToGrid property. See also: http://doc.daypilot.org/scheduler/snap-to-grid/
Right click from mobile
Answered: With the upcoming 7.8 release you will be able to use: dp.eventTapAndHoldHandling = "ContextMenu"; This will activate the context menu for the "tap and hold" gesture. You will need to add custom drag...
Click event on resource in Scheduler
Answered: Got it to work with a contextMenu: dp.onBeforeResHeaderRender = function (args) { args.resource.contextMenu = new DayPilot.Menu({ items: [ { text: "Something", onclick: function () { alert("You click...
How to set value of result in a modal window ajax request?
Answered: You are using the server-side syntax:
Modal.Close(this, "OK");
On the client side, it has only one parameter:
window.parent.DayPilot.ModalStatic.close("OK");
OnEventMoved
Answered: It seems the lite version doe snot support this. I am now using the prod and it works,
onEventMoved preventDefault
Answered: Solved. The main problem that I used ajax updating of event that desynchronise move and moved events.
How to update through MySQLi
Answered: Can you try to download the sample PHP project from here? http://code.daypilot.org/17910/html5-event-calendar-open-source The downloads include a working PHP project with all the features working. Pl...
Update event data
Some times after some changes of event the calendar won't show changes until refresh all page or reload all events. I'm using dp.events.update(evnt) function.
Getting error on $c.selectedCells.length
Hello, When I'm trying to create a new event using daypilot-modal-2.1. After I close modal dialog I use dp.clearSelection(); Then I switching to another view of Calendar and events won't load because...
Export Image or PDF in Javascript
Are there plans to implement the export feature in the javascript version? If not, any recommendations on other ways to accomplish this? Thanks