Questions Tagged javascript

cells don't appear with background color

Answered: Are you using the latest DayPilot Pro version? This normally shouldn't happen and I'm not able to reproduce this problem. Anyway, as a workaround you can also call: dp.show(); It has the same effect ...

Angular2 : problem with licensed version

Answered: There is a bug in the latest release. It's already fixed in the latest sandbox build and a new release is on the way - it will be available later today. Meanwhile, you can use the previous release (8...

Cell customize

Answered: I'm not sure if this is exactly what you are looking for but you can get a list of events the overlap a given cell in onBeforeCellRender using args.cell.events(). See also: https://api.daypilot.org/d...

Half Day Blocks

Answered: Found a solution... function onEventMoving(args) { args.start = args.start.getDatePart().addHours(12); args.end = args.end.getDatePart().addHours(12); }

Resize event

Answered: I've updated the version and its solved. thanks.

Monthly Time range selection is erratic

Answered: Thanks for the reply Dan. No issue with clearing it manually. It was just acting slightly different from the Lite version and wanted to be sure it wasn't something stupid that i did.

Demo version question

Answered: The demo doesn't have this kind of limitation. It might be your bug, but it might also be a DayPilot bug - so let me know in that case.

Change DurationBarColor when click

How can I change the DurationBarColor when I click on event? (Gantt) Is there a way that I can change a specific event style box from the program? When I tried the DurationBarColor it didn't work for...

How to hide Daypilot.contextMenu

Answered: You can use hideOnMouseOut property: var dp = new DayPilot.Menu({ items: [ {...}, {...}], hideOnMouseOut: true });

How to change the Day Width

Answered: You can customize the cell width using cellWidth property. The Gantt chart component is based on the Scheduler and in uses the same API: dp.cellWidth = 60; dp.update();

Angular2 row filter + auto width

Answered: A tutorial on row filtering in Angular 2 is in the works and it will be published in a day or two. The row header width autofit should work fine, let me check that.

Open edit window after creating

Answered: It's possible to open the edit dialog on the client side as soon as the TimeRangeSelected callback is finished. You can pass custom data back to the client side using DayPilotCalendar.Update() and re...

How to apply daypilot license?

Answered: You need to use daypilot-all.min.js file from the full package. This file is different for the licensed version.

Full View Print on Scheduler

Answered: Yes, it's possible using the standard exportAs().print() call. Just specify the area you want to export: dp.exportAs("svg", { area: "full"}).print(); You can try it in the browser console in the Sche...

Angular2 Scheduler performance issue after upgrade

Answered: It looks like zone.js generates an internal error whenever an event handler is assigned to a DOM object. This error is handled internally - I'm not sure if it's part of the standard workflow, but it'...

image in Scheduler

Hi Can it is possible to have an profile image of Resources in Daypilot Scheduler. If it is possible can you provide me the code in JS. Thanks Anil Singh

Assign custom list in event list

Answered: The most common problem when the events don't appear is that the resource id reference (dp.events.list[].resource) doesn't match the id of the resource (dp.resources[].id). Note that it must be exact...