DayPilot Forums (New Questions) https://forums.daypilot.org/ DayPilot Forums - new questions. Gantt: Add "padding" days Hi there,

By default, and unless otherwise specified, the DayPilot.Gantt renders a timeframe from the first to the last item.

Other than manually calculating and setting a start date (DayPilot.Gantt.startDate) as well as a duration (DayPilot.Gantt.days), would it be possible to have an option to add a number of “padding” days? E.g. start the duration always 5 days before and make the chart 5 days longer than the last element?

Currently, we load everything, trigger an update, then calculate new start and end using visibleStart() and visibleEnd(), and the trigger an additional update. If the user is scrolled to the end of the Gantt chart, this sometimes makes them jump towards the middle, as the first update() has a shorter time range…

Thanks!
Leo

]]>
https://forums.daypilot.org/question/6801/gantt-add-padding-days Leo https://forums.daypilot.org/question/6801/gantt-add-padding-days Wed, 18 Mar 2026 14:14:05 +0000
Restrict event drag-and-drop to a specific time window per event Hi,

I'm building a production scheduler where each event has a valid time window (defined by material arrival date and cut deadline). I need to restrict drag-and-drop so that an event cannot be moved outside this window.

Is there a built-in way to constrain event movement to a specific time range per event? Or should I handle this in onEventMoved by validating and reverting if the new position is outside the allowed corridor?

Any examples or best practices would be appreciated.
BRG
Iliah

]]>
https://forums.daypilot.org/question/6800/restrict-event-drag-and-drop-to-a-specific-time-window-per- Iliah https://forums.daypilot.org/question/6800/restrict-event-drag-and-drop-to-a-specific-time-window-per- Thu, 12 Mar 2026 20:39:28 +0000
Ability to hide specific dates How I could hide specific dates?

]]>
https://forums.daypilot.org/question/6799/ability-to-hide-specific-dates jim https://forums.daypilot.org/question/6799/ability-to-hide-specific-dates Thu, 12 Mar 2026 11:00:42 +0000
Gantt chart Link connecting Issue in angular My problem is, In Angular Gantt Chart, a task(Task C) is not initially in my viewport and I try to link a Task( Task A - is initially in my viewport) to Task C by dragging at that time link connecting dot is not visible in Task C. so i can’t able to link task. Any solution for this. Issue not related to scrolling I already enabled autoscroll.

]]>
https://forums.daypilot.org/question/6798/gantt-chart-link-connecting-issue-in-angular Anonymous https://forums.daypilot.org/question/6798/gantt-chart-link-connecting-issue-in-angular Mon, 09 Mar 2026 13:09:23 +0000
gantt daypilot angular link dots not visible if the task viewport is not initially visible gantt daypilot angular link dots not visible if the task viewport is not initially visible, that is draw a link from task A and task B is only visible by draging how to fix this

]]>
https://forums.daypilot.org/question/6797/gantt-daypilot-angular-link-dots-not-visible-if-the-task-vi Anonymous https://forums.daypilot.org/question/6797/gantt-daypilot-angular-link-dots-not-visible-if-the-task-vi Thu, 05 Mar 2026 05:20:34 +0000
scheduler reload requirements Hi,

Sorry…title is a bit vague but not exactly sure how to word it. I have several schedulers within my webforms-based site, and I use modals with update panels for adding/editing/etc. events within the schedule. My modals have sections contained within update panels so staff can update parts of various records quickly and without having to wait for a full round-trip to/from the server, etc.

I’m having an issue where the scheduler appears to have to be refreshed whenever any submit control (button, link button, checkbox, etc.) is clicked within the modal…even if the control doesn’t run any code that actively changes the dataset for the scheduler.

For example, my modal has a standard-looking “X” gif in the upper right-hand corner to close it out if no action was taken on the data displayed within the modal. The “X” does call a sub in the code-behind but that sub is only cleaning up form fields, etc. within the modal and then closing the modal. The “X” lives inside of an update panel that is contained within the modal, and I’ve got the “X” set as an async trigger for the update panel. However, if I do not have a command with the sub (called by the “X”) that refreshes / reloads the scheduler data I get an “Object reference not set to an instance of an object.” error when I click the “X”.

Historically when I’ve used modals and update panels I don’t think I’ve had this kind of issue - is there something in the scheduler I need to adjust?

Thanks - EW

]]>
https://forums.daypilot.org/question/6796/scheduler-reload-requirements Ed https://forums.daypilot.org/question/6796/scheduler-reload-requirements Tue, 03 Mar 2026 20:45:17 +0000
Infinite Scrolling: Time jump in Safari Hi Dan,

We found another issue with infinite scrolling, this time in Safari (Mac OS), also reproducible in the Sandbox:
While being very smooth, when nearing the end, the time axis jumps forward too much (see attached video).

Thanks
Leo

]]>
https://forums.daypilot.org/question/6795/infinite-scrolling-time-jump-in-safari Leo https://forums.daypilot.org/question/6795/infinite-scrolling-time-jump-in-safari Tue, 03 Mar 2026 12:19:26 +0000
Infinite Scrolling: Jumping on Firefox Hi there,

Thanks for fixing the Infinite Scrolling of the Scheduler recently. We have discovered that it is still jumpy on Firefox. See attached video of the official demo page. When reaching the end of the period, depending on the amount of movement, the scheduler jumps and scrolls indefinitely forwards in time.

Cheers
Leo

]]>
https://forums.daypilot.org/question/6794/infinite-scrolling-jumping-on-firefox Leo https://forums.daypilot.org/question/6794/infinite-scrolling-jumping-on-firefox Tue, 24 Feb 2026 09:29:09 +0000
search on v.events.list? Hi,

Would like to do a live search on my web forms project without having to go back and forth to the database, etc. In looking at the page source of my monthly calendar, I see a line labeled “v.events.list” which has all of the data that I’m looking to search through. Are there any native capabilities to perform a search on this dataset? Lacking that, does anyone have any techniques for getting this data? I’ve tried a couple of JavaScript code samples (from Google) for getting the data from the page source but so far, no real success.

Thanks in advance - Ed

]]>
https://forums.daypilot.org/question/6793/search-on-v-events-list Ed https://forums.daypilot.org/question/6793/search-on-v-events-list Wed, 18 Feb 2026 18:34:09 +0000
Navigator loses customisation on time range selected changes Two things I am having issues with:

1) When I select a new time range on the navigator, it loses the customisation I have setup on the BeforeCellRender.

2) How can you update the navigator through javascript? I have tried using the nav.update(), but it comes up with the error in screenshot 3.

Javascript

let nav = new DayPilot.Navigator("dpnSelection");
console.log(nav);
nav.update();

Nav declaration

<DayPilot:DayPilotNavigator ID="dpnSelection" runat="server" ClientIDMode="Static" 
ShowMonths="3" SelectMode="Week" CellHeight="25" CellWidth="25" 
OnBeforeCellRender="Selection_BeforeCellRender" 
OnTimeRangeSelected="Selection_TimeRangeSelected" TimeRangeSelectedHandling="Postback" />
]]>
https://forums.daypilot.org/question/6791/navigator-loses-customisation-on-time-range-selected-changes Pete https://forums.daypilot.org/question/6791/navigator-loses-customisation-on-time-range-selected-changes Sat, 07 Feb 2026 16:37:49 +0000
How to do totals by column and conditional coloring of cells In my application each event has as weight of sorts (think of it as a percentage), and I want to show the totals-by-column. If the total exceeds 100% I want to color it red. I got quite far but I have some loose ends, and I worry I may have the wrong approach.

Here’s what it looks like (ignore the blue columns, that’s something else.)

What I’m trying:

  • I store the event weight in event.tags.weight

  • In various places like onEventMoved or onTimeRangeSelected I call a recomputeWeights() function

  • My recomputeWeights() function iterates through all columns. I didn’t find a direct way to iterate the columns, but I’m doing
    for (cell of rows.find(“1”).cells.all())
    where row 1 is just a representative row, and that works well enough

  • I use events.forRange(cell.start, cell.end) to find all the events in that column, and add up the weights from the tags

  • I store that in a simple weights object where the key is cell.start and the value is the weight

  • Then, in onBeforeTimeHeaderRender and onBeforeCellRender I can look up the weight by cell-start in my weights object

A few things are not yet working, or feel icky:

  • When you drag to create a new event, I call events.add(), and then recomputeWeights(), but the new event isn’t present yet (race condition) so it doesn’t update correctly

  • I haven’t found where to compute the weights on first open

  • I have to “prod” the Scheduler to repaint the headers. I’m doing:
    dp.update({

    timeHeaders: [{"groupBy":"Month"},{"groupBy":"Day","format":"d"},{"groupBy":"Day","format":"d"}],

    });
    Which isn’t changing the timeHeaders, just asking them to get redrawn.

Is there a better approach for any of this?

]]>
https://forums.daypilot.org/question/6790/how-to-do-totals-by-column-and-conditional-coloring-of-cells Peter https://forums.daypilot.org/question/6790/how-to-do-totals-by-column-and-conditional-coloring-of-cells Wed, 04 Feb 2026 22:57:21 +0000
Parent100Pct not an option for heightSpec The documentation seems to not be up-to-date anymore since the proposed heightSpec “Parent100Pct” to get a 100% height of parent calendar is not an option, at least not in @daypilot/daypilot-lite-react v5.3.1.

Using that spec is suggested here: https://doc.daypilot.org/calendar/100-pct-height/

The only admissible heightSpec values in the mentioned version are "BusinessHours" | "BusinessHoursNoScroll" | "Full"

]]>
https://forums.daypilot.org/question/6789/parent100pct-not-an-option-for-heightspec Artemis https://forums.daypilot.org/question/6789/parent100pct-not-an-option-for-heightspec Sun, 25 Jan 2026 12:19:27 +0000
Submenu does not trigger onClick anymore Hi there,

It seems that the onClick of submenus in the Scheduler / DayPilot.Menu is no longer triggered.
I would assume this to be introduced with version 2026.1.6811.

]]>
https://forums.daypilot.org/question/6788/submenu-does-not-trigger-onclick-anymore Leo https://forums.daypilot.org/question/6788/submenu-does-not-trigger-onclick-anymore Tue, 20 Jan 2026 09:52:13 +0000
Timesheet separator I am going to make the separator on timesheet scheduler.
How can I do it?
In separators array, only requires the date/time.
But in timesheet scheduler, header axis is only time.
How can I operate it?

]]>
https://forums.daypilot.org/question/6786/timesheet-separator Alexey Grigorev https://forums.daypilot.org/question/6786/timesheet-separator Mon, 19 Jan 2026 13:03:04 +0000
"dp.events.update(dpEvent)" sometimes redraw all Events on a *Month* calendar I’m now using a Month calendar and I have the same flickering issue that I had with the Week calendar (now fixed):
https://forums.daypilot.org/question/6735/dp-events-updatedpevent-sometimes-redraw-all-events-on-a-ca

Would it be possible to apply a similar fix to the Month calendar as the one made on the regular Calendar?

]]>
https://forums.daypilot.org/question/6785/dp-events-updatedpevent-sometimes-redraw-all-events-on-a-mo Julien https://forums.daypilot.org/question/6785/dp-events-updatedpevent-sometimes-redraw-all-events-on-a-mo Fri, 16 Jan 2026 14:57:20 +0000
LinkShape being ignored in Scheduler Hi,

For all my links I have specified the linkShape to be RightAngled, but it’s still creating curved links - any ideas?

Other properties in my link objects (width, style color) are working as expected, but linkShape seems to have no effect.

Here’s a sample of my array of links:

        {
            "from": "8485526",
            "to": "8485527",
            "type": "FinishToStart",
            "linkShape": "RightAngled",
            "style": "solid",
            "width": 6,
            "color": "grey"
        },
        {
            "from": "D8485526",
            "to": "8485526",
            "type": "FinishToStart",
            "linkShape": "RightAngled",
            "style": "dashed",
            "width": 6,
            "color": "grey"
        },
        {
            "from": "8485528",
            "to": "8485529",
            "type": "FinishToStart",
            "linkShape": "RightAngled",
            "style": "solid",
            "width": 6,
            "color": "grey"
        },
]]>
https://forums.daypilot.org/question/6784/linkshape-being-ignored-in-scheduler Anonymous https://forums.daypilot.org/question/6784/linkshape-being-ignored-in-scheduler Fri, 16 Jan 2026 13:02:19 +0000
Month.makeDraggable doc and Typescript types missing Month.makeDraggable TS types are missing and that method doesn’t seem to be documented at all. The demo works well though.

Thank you.

]]>
https://forums.daypilot.org/question/6783/month-makedraggable-doc-and-typescript-types-missing Julien https://forums.daypilot.org/question/6783/month-makedraggable-doc-and-typescript-types-missing Thu, 15 Jan 2026 17:24:07 +0000
How to fire onTimeRangeSelect/ed events for disabled cells Is it possible to fire the onTimeRangeSelect/ed events for cells, that are disabled using the built-in disabling featur?

]]>
https://forums.daypilot.org/question/6780/how-to-fire-ontimerangeselect-ed-events-for-disabled-cells Anonymous https://forums.daypilot.org/question/6780/how-to-fire-ontimerangeselect-ed-events-for-disabled-cells Wed, 07 Jan 2026 16:02:05 +0000
Recurring Activities Hi,
Do you have any examples of how to structure a recurring activity?
Thanks

]]>
https://forums.daypilot.org/question/6777/recurring-activities Anonymous https://forums.daypilot.org/question/6777/recurring-activities Thu, 01 Jan 2026 19:23:22 +0000
Event Slot not always displayed in schedule in vue3 wrapper Hi,

When we use a slot to customise the appearance of the event, it seems to work correctly. However, when we scroll back, the appearance of the event reappears as if the slot did not exist.

Component:

<DayPilotScheduler
     ref="schedulerRef"
     :config="scheduleConfig"
 >
    <template #event="{ event }">
       <div class="event-body">
           Template: {{ event.data.id }}
       </div>
    </template>
</DayPilotScheduler>
 const scheduleConfig = reactive({
    locale: "es-es",
    timeHeaders: [
        { groupBy: "Day", format: "dddd, d MMMM yyyy" },
        { groupBy: "Hour" },
        { groupBy: "Cell", format: "mm" },
    ],
    scale: "CellDuration",
    cellDuration: 15,
    days: 20,
    eventHeight: 70,
    cellWidth: 60,
    startDate: DayPilot.Date.today(),
    timeRangeSelectedHandling: "Disabled",
    eventMoveHandling: "Disabled",
    eventResizeHandling: "Disabled",
    eventDeleteHandling: "Disabled",
    eventRightClickHandling: "ContextMenu",
    contextMenu: new DayPilot.Menu({
        items: [
            {
                text: "Delete",
                onClick: (args) => {
                    const dp = args.source.calendar;
                    dp.events.remove(args.source);
                },
            },
        ],
    }),
    onEventClick: (args) => {
        console.log("Event clicked", args.e);
    },
});

Regards

]]>
https://forums.daypilot.org/question/6776/event-slot-not-always-displayed-in-schedule-in-vue3-wrapper Manuel https://forums.daypilot.org/question/6776/event-slot-not-always-displayed-in-schedule-in-vue3-wrapper Wed, 24 Dec 2025 15:23:29 +0000
Jumpy infinite scrolling scheduler Hi there,

When scrolling and holding the scroll bar to the right in the infinite scrolling scheduler, the scheduler jumps correctly ahead in the timeframe. However, if holding the mouse button further, every subsequent move of just a few pixels makes the time jump again and again, often resulting in uncontrolled scrolling. (See attached video)

Can this be adjusted, maybe with a timeout or a “block“ until the mouse is released and dragged again?

Many thanks
Leo

]]>
https://forums.daypilot.org/question/6775/jumpy-infinite-scrolling-scheduler Leo https://forums.daypilot.org/question/6775/jumpy-infinite-scrolling-scheduler Mon, 22 Dec 2025 09:33:06 +0000
Export Styled Calendar Hello
Currently I’m using DayPilot Pro for JavaScript (Web Mini) for the attached schedule. I have custom CSS styling defined for this, as you can see.
In the previous conversation you suggest I’ll have to upgrade web mini to get latest release. My question is that, Can DayPilot Pro for JavaScript (Web Team) export the below-attached styled calendar as it is?

Please confirm

]]>
https://forums.daypilot.org/question/6774/export-styled-calendar Ankit Dhiman https://forums.daypilot.org/question/6774/export-styled-calendar Mon, 15 Dec 2025 11:18:52 +0000
Optimizing JavaScript Performance for Real-Time Apps I’m developing a web application for Eminence Technology that relies heavily on real-time data updates, frequent DOM changes, and complex user interactions. As the application grows, I’m starting to face issues like UI lag, delayed rendering, and increasing memory usage. I’ve already tried basic optimizations but they don’t seem enough for larger workloads. What advanced techniques or tools can help improve JavaScript performance, manage memory effectively, and keep the user experience smooth as traffic and features scale up?

]]>
https://forums.daypilot.org/question/6772/optimizing-javascript-performance-for-real-time-apps Mark Whitman https://forums.daypilot.org/question/6772/optimizing-javascript-performance-for-real-time-apps Wed, 10 Dec 2025 10:52:47 +0000
DayPilot.Menu hide() with Escape button Currently testing a context menu implementation with DayPilot.Menu.

All good so far. Is there a native way to hide the menu on pressing ESC?

document.addEventListener would work also but not sure if we want to attach it globally.

]]>
https://forums.daypilot.org/question/6771/daypilot-menu-hide-with-escape-button Alex5 https://forums.daypilot.org/question/6771/daypilot-menu-hide-with-escape-button Fri, 05 Dec 2025 15:08:10 +0000
inconsistent behavior with touch events I am having some issues with the grid’s event onEventClick event, when trying to capture a touch on an event. It seems to be triggering twice as both a click and a touch. It doesn’t seem to be consistent but it does happen enough that it’s causing issues. It doesn’t seem like prevent defaults is working either in the onEventClick().

is this something that has been reported before? Is there anything that could be done to prevent this?

]]>
https://forums.daypilot.org/question/6770/inconsistent-behavior-with-touch-events Vincent https://forums.daypilot.org/question/6770/inconsistent-behavior-with-touch-events Wed, 03 Dec 2025 22:08:25 +0000
Cannot read properties of null (reading 'data') - on Event mouseover I don’t know if there is a way for me to give you more information because I don’t think you are providing the source code (and sourcemaps for Typescript) in the NPM package of the pro version, right? That would be very nice, by the way.

But I get this error on a Calendar, when mouseovering on a specific Event, and I’m not sure why:

Uncaught TypeError TypeError: Cannot read properties of null (reading 'data')
    at kh (/home/julien/dev/xxxxxxx/node_modules/daypilot-pro-javascript/daypilot-javascript.min.js:19:3666)
    at getDiv (/home/julien/dev/xxxxxxx/node_modules/daypilot-pro-javascript/daypilot-javascript.min.js:14:22351)
    at show (/home/julien/dev/xxxxxxx/node_modules/daypilot-pro-javascript/daypilot-javascript.min.js:14:18914)
    at <anonymous> (/home/julien/dev/xxxxxxx/node_modules/daypilot-pro-javascript/daypilot-javascript.min.js:14:25208)
    --- setTimeout ---
    at showOnMouseOver (/home/julien/dev/xxxxxxx/node_modules/daypilot-pro-javascript/daypilot-javascript.min.js:14:25267)
    at showEvent (/home/julien/dev/xxxxxxx/node_modules/daypilot-pro-javascript/daypilot-javascript.min.js:14:17269)
    at Ve (/home/julien/dev/xxxxxxx/node_modules/daypilot-pro-javascript/daypilot-javascript.min.js:18:28263)


Version used (sandbox): https://npm.daypilot.org/daypilot-pro-javascript/trial/2025.4.6751.tar.gz

It’s not very bad since it still works great, but in case you have any idea.

Thank you!

]]>
https://forums.daypilot.org/question/6766/cannot-read-properties-of-null-reading-data-on-event-mouseo Julien https://forums.daypilot.org/question/6766/cannot-read-properties-of-null-reading-data-on-event-mouseo Mon, 01 Dec 2025 15:21:03 +0000
TypeScript for DayPilot.Scheduler.onBeforeCellExport incomplete Hi there,

the types for DayPilot.Scheduler.onBeforeCellExport are missing:

  • args.areas

  • args.fontColor

  • args.fontFamily

  • args.fontSize

  • args.fontStyle

  • args.format

Cheers
Leo

]]>
https://forums.daypilot.org/question/6765/typescript-for-daypilot-scheduler-onbeforecellexport-incomp Leo https://forums.daypilot.org/question/6765/typescript-for-daypilot-scheduler-onbeforecellexport-incomp Mon, 01 Dec 2025 14:32:50 +0000
Resizing an Event may lead to unwanted and automatic scrolling of the Calendar In a "Week" Calendar that is limited in height (only 6 hours out of 24 are displayed and you need to scroll to see other hours), I have an Event near the top of a day (let's say a one hour Event).

I drag the bottom of that Event to resize it toward the bottom. This works great if I stop resizing (mouseup) before the Calendar starts to scroll. But if I continue to resize (with mousedown still on) and the Calendar has started to scroll toward the bottom, and *then* let go (mouseup), very often the Calendar continues to scroll by itself until it reaches the end, even if I don't touch anything anymore! At the moment of the mouseup, the Event stops being resized (which is ok), but the Calendar continues to scroll (which is not ok).

I can trigger the same issue with an Event near the bottom that I resize toward the top.

In order to stop the automatic scrolling when this happens, I need to click an Event. Even scrolling with the mouse wheel in the opposite direction doesn't stop the ongoing automatic scrolling.

The Calendar has those options :

heightSpec: 'Parent100Pct'
eventResizeHandling: 'Update'

and is inside a parent div, with CSS :

resize: vertical;
overflow: auto;
height: 60vh;


Any idea?

Thanks for the help!

]]>
https://forums.daypilot.org/question/6764/resizing-an-event-may-lead-to-unwanted-and-automatic-scroll Julien https://forums.daypilot.org/question/6764/resizing-an-event-may-lead-to-unwanted-and-automatic-scroll Wed, 26 Nov 2025 00:43:43 +0000
preventDefault() on DayPilot.Scheduler.onTimeRangeSelecting Hi there,

It would be great to have a way of disabling/aborting time range selection on the Scheduler on an individual basis.

The DayPilot.Scheduler.onTimeRangeSelect has a preventDefault() function. It would be great if there was a flexible way to also disable the selection earlier so that the time range selection does not appear.

(I only found options like timeRangeSelectedHandling = “Disabled” which generally disable the selection, however I would love to be able to control the selection individually per row, for example.)

Cheers
Leo

]]>
https://forums.daypilot.org/question/6762/preventdefault-on-daypilot-scheduler-ontimerangeselecting Leo https://forums.daypilot.org/question/6762/preventdefault-on-daypilot-scheduler-ontimerangeselecting Thu, 20 Nov 2025 09:55:07 +0000
Border not showing up in AllDay Events, and Scroll Bar Hello, I am having troubles getting the event border to show on my AllDay events. The event background color and font color seem to come through, and I have confirmed through console logging that eventArgs.e.data.borderColor is equal to the color that I had set, but it wont render on the actual calendar just the background color and font color.

Additionally, when a day has many AllDay events the events are stacked up ontop of ewachtoher and it pushed the rest of the calendar down the page. Is there a way have a scroll bar for just the AllDay events section under the column headers?

TIA

]]>
https://forums.daypilot.org/question/6761/border-not-showing-up-in-allday-events-and-scroll-bar Luis S https://forums.daypilot.org/question/6761/border-not-showing-up-in-allday-events-and-scroll-bar Mon, 17 Nov 2025 15:54:37 +0000