search envelope-o feed check
Home Unanswered Active Tags New Question

Questions Tagged

Daypilot React Scheduler - Row Header Customization with multiple columns

Answered: Unfortunately, custom React components in multiple row header columns are not supported at the moment. Until it is available, you can try using row header active areas to show the icons.

How to get a bubble on the time column headers in the scheduler.

Answered: You can show the bubble using a time header active area: onBeforeTimeHeaderRender: args => { const header = args.header; args.header.areas = [ { left: 0, ...

Removing all tasks from a gantt chart without disposing of it

Answered: When you need to load a new task set in the Gantt chart, the best way is to replace the tasks with a new array: const tasks = [ /* ... */ ]; dp.update({tasks}); There is no need to clear the events ...

How to prevent even dragging and resize on selected events

Answered: Drag and drop In the Lite (open-source) version, you can only enable/disable drag and drop for all calendar events using eventMoveHandling and eventResizeHandling. In the Pro version, you can disable...

Separator on TimeHeaders

Answered: You might need to check the value of startOfMonth. Please make sure that it contains correct dates. My guess is that the values don’t correspond to the current view when the separators are not visibl...

Scheduler businessEndsHour later than 24

Answered: The Scheduler has built-in support for quick specification of business hours using businessBeginsHour and businessEndsHour but businessBeginsHour needs to be smaller than businessEndsHour. For more c...

Uncaught TypeError: Cannot read properties of null (reading 'style')

daypilot-core.js:17 Uncaught TypeError: Cannot read properties of null (reading 'style') at DayPilot.Calendar.Ea (daypilot-core.js:17:14081) at DayPilot.Calendar.La (daypilot-core.js:16:23322) at Res...

newResourceId is undefined on event resize

Answered: There is no args.newResource available in onEventResize as the resource doesn’t change during resizing. You can access the event resource ID using args.e.resource().

Put a Swap button on the context menu

Answered: Please take a look at the following tutorial: JavaScript Scheduler: Swap Events using Context Menu

Backend events are not loaded in the resource calender

Answered: Thanks for the update! The problem is the type of events.resource_id database field. It is incorrectly set to varchar instead of integer. Older versions of PHP/PDO converted integer values to string ...

Highlighting multiple dates in scheduler

Answered: You are overwriting the onBeforeCellRender event handler several times and only the last value is used. You need to check the dates against the list of highlighted days inside onBeforeCellRender. Thi...

How to collapse tasks based on field from database

Answered: In onBeforeTaskRender, it is only possible to access the raw data object (args.data). The DayPilot.Task object is not available yet. To collapse the rows, you can set the args.data.row.collapsed prop...

DayPilot React: When Event is moved I wanna ask a question if they are sure they wanna move it

Answered: Yes, you can find an example in the documentation for event moving: onEventMove: async (args) => { args.async = true; const modal = await DayPilot.Modal.confirm("Do you really want to move this...

Api Key

Answered: Can you please contact support@daypilot.org?

Scheduler: Mac users can't scroll when hovering resources

Answered: Thanks for the update. All browser on a Mac use the same rendering/JS engine (from Safari). The problem with old MacOS versions is that Safari stops getting updates at some point - that means on an o...

SnapToGrid: false destroys Time Range Selection.

Answered: It’s in the queue, please hold on!

scrollToResource is buggy.

Answered: The scrollToResource() method is quite simple (it sets the scrollTop style to the appropriate value) but it is executed asynchronously, after a delay of 100ms. It’s good to take this into account. I ...

Gantt chart

gantt chart attech in asp.net c#?

How do i delete a full row?

Answered: You can add a delete icon to the Scheduler row headers using an active area. onBeforeRowHeaderRender: (args) => { args.row.areas = [ { right: 3, top: 3, ...

How to use angular component in bubble HTML

Answered: Sorry for the delay! There is a tutorial that shows how to insert an Angular component to the bubble. Angular Scheduler: Dynamic Tooltip It is necessary to instantiate the component and add it to the...

Collapse task in DayPilot.Gantt

Answered: The tasks.list array holds the raw data objects (they don’t have any methods). The method you need is DayPilot.Task.row.collapse(). You can call it like this: this.gantt.tasks.find(row.id).row.collap...

Accessing the args data for an event being moved, not the new values for start, end and possibly resource

Answered: In the onEventMoved event handler, the event object (args.e) is already updated to the new values. If you want to get the old values, you need to use onEventMove where the args.e property stores the ...

<daypilot-scheduler> is not a known element

Answered: It is necessary to add DayPilotModule to the imports section of the module where you want to use <daypilot-scheduler>. Example from the Angular Scheduler Quick Start tutorial: import {DataService} fr...

Adding custom filters

Answered: To apply the filter, it is necessary to call the rows.filter() method with a non-null parameter. It also updates the UI (no additional update() call is necessary). This filter parameter is then store...

Adding custom CSS to task in Gantt

Answered: It is necessary to style the task children independently. It is not possible to style task children by applying a CSS class to their parent. In the resulting DOM structure, the task children are not ...

Cannot install DayPilot in my current Angular application

Answered: It looks like Chrome has started to report certain code as an error, even though it was acceptable before. It will be fixed shortly.

Calendar time range selection broken on 2024.1.5854

Answered: This issue should be fixed now in the latest sandbox build (2024.1.5872). Please let me know if the problem persists. Thanks for reporting the issue!

Cannot set property document of #<Window> which has only a getter in Nuxt

Answered: This issue should be fixed now in the latest release (version 2024.1.519/3.20.1): https://javascript.daypilot.org/daypilot-lite-for-javascript-2024-1-519/ Please let me know if the problem persists.

Event Resizing Validation - Do not allow event overlapping even when "allowEventOverlap=true"

Answered: You can do it like this: onEventResizing: args => { const row = dp.rows.find(args.e.resource()); const events = row.events.forRange(args.start, args.end).filter(e => e.id() !== args.e.id())...

Hide resources panel (Scheduler)

Answered: Yes, it is possible to hide/show the Scheduler row headers using the API (rows.headerHide() and rows.headerShow() methods). You can also set the rowHeaderColumns property to an empty array to remove ...
Previous Questions 151-180 of 5053 Next