Questions Tagged javascript
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
AutoRefresh for JavaScript
Answered: AutoRefresh is now supported in the JavaScript version (build 7.7.813). See the sandbox: http://javascript.daypilot.org/sandbox/ If enabled during initialization (autoRefreshEnabled = true), it will ...
Set dps.startDate and dps.days via javascript
Answered: You should call .update() after changing startDate or days. This is an example from the the navigator integration demo: http://javascript.daypilot.org/demo/scheduler/navigator.html See onTimeRangeSel...
How to prevent event dragging and resizing
Answered: You should set the .moveEnabled property on the DayPilot.Event.data object, not on DayPilot.Event directly:
var e = new DayPilot.Event({
start: "2014-03-25T00:00:00"),
end: "2014-03-25T12:00:...
optical bug when i drag an event
hi! i have an event with "moveHDisabled". When i drag this event i can drag this event to the left cell. hope you know what i mean ;) can send you a screenshot...
How to move an event programmatically?
Answered: If you modify the event in .events.list and call update() it should be updated properly (as all events will be redrawn as part of the update). See also: http://api.daypilot.org/daypilot-scheduler-upd...
Using div in bubble
Answered: It looks like your styles use position: absolute. This causes the bubble HTML content to be taken out of the page flow - it doesn't extend the bubble div height. Try using position: relative instead.
adding additional attributes to a resource ?
Hi! I want to add f.a. "resourcetype" to a resource. And then, i want to read this attribute when the user drop an event, f.a. in the method "onEventMove". Is this possible? THANKS!!! Daniel
Problem with starting on the first day of the week
Answered: I added the day of the week to the method and it worked: dp.scrollTo(new DayPilot.Date().firstDayOfWeek(1));
Changing start date of event
Answered: Changes of the key properties (id, start, end, resource, text) doesn't have an immediate effect because it would cause problems if you modified events that are already visible in the calendar/schedul...
Show html bubble on event click in Scheduler
Answered: Using DayPilot Pro 7.7.787 and later (see the sandbox at http://javascript.daypilot.org/sandbox/) you can do this:
dp.onEventClicked = function(args) {
new DayPilot.Bubble().showHtml("...
Strange behavior of DayPilot.Locale datePattern
Answered: Please try version 7.7.759 from the sandbox: http://javascript.daypilot.org/sandbox/ "ddd" pattern string is not implemented in prior versions.
Deleting event
Answered: Yes, there is no built-in onEventDelete event. You can call dp.events.remove(e) and then notify the server:
dp.events.remove(e);
$.post("delete", { e: e.id() }, function() {
dp.message("D...
Display custom string in time headers
Answered: You can customize the header HTML using onBeforeTimeHeaderRender event handler:
dp.onBeforeTimeHeaderRender = function(args) {
if (args.header.level === 1) {
args.header.html = args.header....
Text/Description for a seperator
Hey Dan! Can you add a Text to a seperator to descripe it? You could add a bubble for a short time when you do a mouseover over the seperator. Or show the text on the upper of the seperator. thanks d...
Problem with localization
Answered: Alex, You need to register it using DayPilot.Locale.register() method:
DayPilot.Locale.register(localeMy);
The .register() method must be invoked on DayPilot.Locale object directly (not on an ins...
Event is displayed twice (Dynamic Loading)
Answered: This bug is fixed now in build 7.7.781. Please see the sandbox: http://javascript.daypilot.org/sandbox/
timeHeader Bubble in the scheduler?
Hi, i want to use a Bubble onmouseover on the timeHeader, f.a. on the day. howto? thanks
Ability to extract only the necessary modules to include in a web app
Hi, We are considering using DayPilot Pro for Javascript in our web application. The only concern we have is that it is too big (478 kB minified) and there are modules that we don't need such as Gant...
Fix the upper Resource?
Answered: This would be a nice feature but it's not quite easy to implement it... I'm adding it to the wishlist.
Zooming in JS-Version?
Answered: The zooming implementation in the ASP.NET demo (http://www.daypilot.org/demo/Scheduler/Zooming.aspx) is quite simple: It overrides the default time header cell text using BeforeTimeHeaderRender event...
Is it possible to get information of selected timerange while selecting?
Answered: This feature is in the works. I will be available in 1-2 weeks.
Capture global mousedown/up event
I need to capture any mousedown and mouseup event fired on the scheduler. I've tried just adding an eventlistener to the entire dps container like this: $("#dps")[0].addEventListener("mousedown", fun...
Show more than one bubble at the same time
Answered: The bubble is designed to display just a single box at the same time. All previously displayed bubbles will be hidden when displaying a new one. Also, the bubble is hidden when you move the mouse out...
Execute javascript function after clicking ok button on event creation DayPilot Month.
Hello! My name is Roby. I'm using DayPilot Month Lite in my project. I need to trigger a javascript function after I click the OK Button into the event creation alert. My big questions (after reading...
How to read anr write tags?
Answered: OK I solved it by myself. e.data.tag["key"] = value; to read: e.tag("key")
modal border change cursor
hi! want to change the cursor when mouseover the border auf a modal popup. thanks
Intercept Modal close/hide
Hi! I use the Modal popup. I want to intercept the closing/hiding of the modal. I want to ask the User if he saved everything - after that the modal can be closed. If the user clicks "no" the modal s...
Get visible time range (scheduler)
Answered: Sorry, didn't see this: http://api.daypilot.org/daypilot-scheduler-getviewport/ dps.getViewPort().start and dps.getViewPort().end is what I was looking for.