Questions Tagged javascript

Resource Tree cell clickable

Answered: Yes, you can do it using onRowClick handler: dp.onRowClick = function(args) { args.row.toggle(); };

onBeforeCellRender not getting called upon update()

Answered: If you execute full update() the onBeforeCellRender will always be called. If you call partial update(), e.g. by specifying events only: dp.update({events: [ ... ]}); then a cached result of onBefore...

is React Scheduler is free or paid

Answered: At this moment, the Scheduler and the React API are only included in the Pro version which is paid. See also the feature matrix: https://javascript.daypilot.org/feature-matrix/ You can install a 60-d...

How to make event in disabled Cell clickable

Answered: You can add moveDisabled and resizeDisabled properties to the event data object. This will forbid drag operations but the onEventClick event handler will still be fired for such events: dp.events.lis...

Event creation does not work

Answered: The tutorial is now updated and it uses the following logic: dp.onTimeRangeSelected = function (args) { var name = prompt("New event name:", "Event") dp.clearSelection(); if (!name) { return; } DayPi...

Event Calendar bug when resizing

Answered: This problem should be fixed now in the latest sandbox build (2021.1.4840): https://javascript.daypilot.org/sandbox/

Weird behavior on eventEndSpec set to "Date"

Answered: This issue should be fixed now in the latest sandbox build (2021.1.4831): https://javascript.daypilot.org/sandbox/ Please let me know if the problem persists.

Resize only one side of event

Answered: Yes: You need to disable resizing using eventResizeHandling="Disabled" ( https://api.daypilot.org/daypilot-scheduler-eventresizehandling/ ) and add an active area at the end with action: "ResizeEnd"....

Add Resources Afterwards

Answered: To add resources you need to modify the resources[] array and call update(): dp.resources.push({name: "New resource 1", id: "NR1"}); dp.resources.push({name: "New resource 2", id: "NR2"}); dp.update(...

Scheduler: Cannot read property 'y' of null

Answered: This can happen if you enable keyboard access with keyboardTarget = 'document' and hit enter before focusing a grid cell. It should be fixed now in the latest sandbox build (2020.4.4821).