Questions Tagged javascript

modal.form html inputs

Answered: This is not a typical scenario but you can use the onClose event handler to query the content before it is removed from DOM: https://api.daypilot.org/daypilot-modal-onclose/

VueJS, DayPilotCalendar, resource view

Answered: In the Lite (open-source) version this is not possible at the moment but in the Pro version you can customize the calendar column headers using "onBeforeHeaderRender" event handler: https://doc.daypi...

How can I get the line of event?

Answered: I do not recommend storing individual line numbers in the database. A fixed line number should only be used for selected events that you want to display in a specific position, out of the standard or...

dblclick is not working after daypilot upgrade

Answered: From your example it's not obvious what kind of element that is and where you add it (it is not part of the standard Scheduler structure). Please note that the Scheduler parts are rendered progressiv...

Issue when updating resources

Hello, I am using the scheduler type calendar, and when I try to make an update with the resources, I get the following error: TypeError: Cannot read properties of undefined (reading 'hidden') at Day...

How to use Previous and Next in the DaypilotMonth..?

Answered: The React monthly calendar component works the same way - you need to update the "startDate" property and provide the event data for the new range using "events" property. Another option is to update...

How I can Update events coming from api response..?

Answered: You need to get a reference to the DayPilot.Month object (using "ref" attribute) and call its update() method to display the events. You can find an example here (see the "How to load calendar event ...

How to change text in active area.

Answered: It is not possible to change the text of an existing active area using the Scheduler API. The Scheduler is built on a "refresh" model - you need to update the state first and then request an update t...

Scheduler - Frozen row not on the top layer

Answered: I recommend checking your custom CSS theme: If you define z-index for the event boxes, they will appear on top of everything. The Scheduler doesn't use z-index for any element.

Start drag and drop programatically (Scheduler)

Answered: That is not possible but you can activate any element to be draggable to the Scheduler using DayPilot.Scheduler.makeDraggable(): https://api.daypilot.org/daypilot-scheduler-makedraggable/

Confirm pop up on calendar

Answered: The onValidate event handler can't be asynchronous. Every change of "args" made after the "await" call in validateDateRequired() method will be ignored. If there are values which you allow but requir...

Conditional drags crashes scheduler

Answered: There are a couple of issues with this example: 1. If you set args.async = true, you must call args.loaded() in every code path. Otherwise the dragging operation will remain active. The first "if" bl...