Questions Tagged javascript
Business hours management scheduler
Answered: I assume that you mean the feature that lets you skip non-business hours during event moving. This adjustment is only applied during event moving and not to the data source. The Scheduler assumes tha...
groupConcurrentEvents expand/close all
Answered: You can find an example in the following demo: Group Concurrent Events (Demo) It shows how to add an expand/collapse icon to the row headers using the onBeforeRowHeaderRender event handler.
Facing Issue To Export Data
Answered: During export, the Calendar sometimes isn’t able to read custom CSS. That’s why you see white text on white background. The formatting issues can be handled using the export customization event handl...
Auto fill scheduler events to cell height
Answered: Unfortunately, that is not possible. Events are arranged in horizontal lines inside rows (see also Event placement strategies) and the line height is determined by the event height. It is possible to...
Facing Issue To Set Time Range in Resource View
Answered: The properties you are using are not correct. There are two options: You can change the business hours (business hours affect the viewport height in the default config - see also Height) using busine...
Concurrent Event Group Missing Events
Answered: This should be fixed now in the latest sandbox build (2025.1.6343).
Issue With Horizontal Scrolling Reset in RTL Resource View in Latest Released Version
Answered: I assume that you are referring to this issue. It has been fixed in the latest sandbox build (i.e. 2025.1.6339+). You can download the latest build in the sandbox. The next official release that will...
Issue With Horizontal Scrolling Reset in RTL Resource View
Answered: This was caused by a bug in the AutoScroll feature. The problem should be fixed now in the latest sandbox build (2025.1.6339).
Yearly Scheduler and Multirange
Answered: This bug should be fixed now in the latest sandbox build (2025.1.6338). For now, a range that spans multiple rows will be limited to the first row when added using multirange.add().
Scroll to a specific row
Answered: To scroll to the specified row, you can use the scrollToResource() method.
Need to show horizontal scrolling on top also
Answered: Unfortunately, this is not supported. However, if the problem is that the bottom scrollbar is not accessible without scrolling, I recommend checking the heightSpec property which lets you set the hei...
How to change time from am,pm to 24h
Answered: The easiest way is to use a locale for which the timeFormat property is set to "Clock24Hours". You can also customize individual properties directly - see localization in the docs.
Next.js Resource-Scheduling Calendar (Open-Source) i have a problem using it on mobile the controls are the problem
Answered: The open-source version doesn’t support all functionality on touch devices at the moment. For example, you can click a time slot to select it but you can’t select multiple cells by dragging. The full...
How to detect click on disabled cell
Answered: Please take a look at the following tutorial, which uses onTimeRangeSelecting, onEventMoving and onEventResizing to disable custom time segments (that do not correspond to whole cells): JavaScript Sc...
Cell Height for the event no correct
Answered: It the open-source version, the event box is always aligned with the grid cells. In the Pro version, it is possible to turn off this behavior (see exact event duration). The real start and end is hig...
Why onEventDelete method delete the event from frontend when click delete?
Answered: If you want to wait for the result of an HTTP request, you need to cancel the default action using args.preventDefault() and delete the event manually using event.remove() method when the HTTP reques...
Time Range Click with multi range not working
Answered: These events are fired for the current selection (the one you click), but you can always get all selected time ranges using the multiselect.get() method. Please let me know if this is not what you ar...
Consistent .makeDraggable() functionality
Answered: In the latest release (2024.4.6293), the makeDraggable() methods for Calendar and Scheduler components now use the same structure of the options parameter. remove, onDragStart and onDrop are availabl...
Changing date format on Day/Week view
Answered: You can use the locale property to apply culture-specific settings (such as date format, first day of week….). const calendar = new DayPilot.Calendar("calendar", {
locale: "en-au",
// ...
});
...
daypilot-pro-angular - Angular version 15
Answered: Please make sure that you are using the latest DayPilot Pro version. Angular Ivy is supported since version 2022.2.5344.
Delete (x) button is not shown, when there are overlapping dates
Answered: There are multiple modes available for arranging overlapping events. If you use eventArrangement: "SideBySide", the events will be displayed with their full width always visible.
beforeCellRenderCaching in 'normal' calendar
Answered: Hello Dan, while I was preparing some code for this issue, I found the mistake myself… my backend data was fetched via rest call correctly, but the data was not assigned to the object, which I use in...
I don't see the event on the calendar but it is present on DB
Answered: This tutorial was created for an older version of PHP. PHP 8.3 produces warnings about using dynamic properties: Deprecated: Creation of dynamic property ... is deprecated in ... on line ... That dis...
Summing cost values stored in "tags" (args.data.tags.cost)
Answered: Yes, you can do it using the onBeforeCellRender event, like this: onBeforeCellRender: args => {
if (args.cell.row.data && args.cell.row.data.frozen) {
const events = scheduler.events.forRange...
Debug code for scheduler
Answered: Meanwhile, some general debugging info: > While all functionality works correctly in the HTML window (excluding double-click, right-click, and hover interactions on both row headers and events), sing...
Scheduler watch update events
Answered: In order to detect changes performed by the Scheduler UI in Vue, you need to watch the source object. Like this: <template>
<DayPilotScheduler
:events="events"
:resources="resources"
...
Event Calendar Delete Confirmation?
Answered: When you use an async function in the event handler, calling args.preventDefault() after await has no effect as the processing continues immediately (before args.preventDefault() gets called). You ne...
Multi day selection in week view
Answered: Unfortunately, this feature is only available in the Pro version at the moment. In the open-source version, the selection is limited to a single column of the Calendar component.
Plans on using Canvas?
Answered: Canvas is very fast, but it doesn’t support HTML for styling which is a huge disadvantage. We built a prototype some time ago. Everyone wants it fast but when it comes to styling, nobody wants to giv...
Questions 1-30 of 1992
Next