Questions Tagged javascript

CSP violation issues

Answered: The latest release ( 2025.3.6564 ) now detects the nonce used by scripts and stylesheets on the page and uses it when registering the built-in stylesheet. You shouldn’t see this error anymore. If you...

Display of events takes too long

Answered: By default, events are rendered progressively and there is a small debouncing delay that makes the scrolling smoother . You can either turn progressive rendering off using dynamicEventRendering or yo...

Custom today text

Answered: I assume you mean the DayPilot.DatePicker component. In the latest sandbox build (2025.3.6533), you can now set a custom text of the “Today” button using the todayText property: const picker = new Da...

Only show link when an event is hovered

Answered: Sorry for the delay! You should be able to add links dynamically using links.add() in onMouseOver and remove them using links.remove() in onMouseOut . If there is any problem, please let me know.

Year view Bug in Scheduler

Answered: Thanks. In such a zoomed-out view, the event width can get very small if you turn off the event boxes feature. With event boxes enabled (that’s the default setting), the event width is aligned with t...

An Empty Scheduler Error

Answered: datePattern is a property of DayPilot.Locale . You might want to check the locale value - it must be either a DayPilot.Locale object or a string identifier of a registered locale .

Missing types for DayPilot.Gantt

Answered: The missing TypeScript definitions have been added now in the latest sandbox build (2025.3.6529). The only exception is DayPilot.GanttBeforeCellRenderArgs.cell.areas - this is already available but i...

DatePicker

Answered: The Navigator is limited to selecting a day, week, month or a custom day range (within the visible dates). At this moment we don’t plan to implement year selection and or times.

Navigator update

Answered: Most likely, you are using a reference to an old instance that has been disposed already. So I recommend checking how you get the reference and make sure that it’s not an obsolete one.

Need to Sticky Calendar Header on Top

Answered: You can look at the height options , especially heightSpec: "Parent100Pct" . This setting makes the Calendar component expand to fill its parent element. A vertical scrollbar is added automatically, ...

onEventEditKeyDown acces current text

Answered: In onEventEditKeyDown , the args.element property stores the <textarea> element used for editing. You can get the current text using args.element.value .

Export Data Issue in RTL

Answered: At this moment, the image export of the Calendar component doesn’t work for RTL. This feature is in the queue and it will be implemented in the near future.

Inline Editmode Event size

Answered: You can use the eventEditMinWidth property to control the width. The Scheduler uses whichever is larger: the event’s width or the value of eventEditMinWidth .