Questions Tagged javascript

Filter by Group

Answered: Yes, this is possible: dp.onRowFilter = function(args) { if (args.row.name.toUpperCase().indexOf(args.filter.toUpperCase()) === -1) { args.visible = false; } var parent = args.row.parent(); if (paren...

Weekday header on calendar not resizing

Answered: The DOM structure of the Calendar has changed in 2019.2.3880 ( https://javascript.daypilot.org/daypilot-pro-for-javascript-2019-2-3880/ ) in order to support browser zoom levels. That requires the he...

get all events from resource calendar

Answered: It's now available in the latest sandbox build (2019.4.4058): https://javascript.daypilot.org/sandbox/ Example: var col = dp.columns.find("2019-10-07"); // DayPilot.Column object var events = col.eve...

Snap off the grid

Answered: The real-time onTimeRangeSelecting/onEventMoving/onEventResizing event handlers let you adjust the start/end of the current drag&drop target according to your needs. These events can be used to snap ...

Change width of drag handler when moving rows

Answered: The drag handle width can be set now using rowDragHandleWidth property (since build 2019.3.4044). The default value is 10 (pixels). It will be included in the next official release which is scheduled...

Update Navigator Visible Month

Answered: It should work automatically this way. If the new date is outside of the currently visible range it will switch to the target month. Maybe this is an edge case - would you be able to create an exampl...

Navigator - Size

Answered: In version 2019.2.3871 the default navigator cell size has changed from 20x20 pixels to 30x30 pixels: https://javascript.daypilot.org/daypilot-pro-for-javascript-2019-2-3871/ You can revert to the or...

onScroll callback doesn't work

Answered: The onScroll event is only fired if dynamic event loading is enabled ( https://doc.daypilot.org/scheduler/dynamic-event-loading/ ). You can hook the "scroll" event directly like this: dp.nav.scroll.a...

External drag and drop issue

Answered: Do you mean the appearance of the target position indicator ("shadow")? It looks like you are using custom CSS. However, the dimensions of the shadow are fixed and you need to respect them when setti...

bootstrap with modal daypilot Angular

hello the modal does not work with bootstrap. I am obliged to deactivate Boostrap. do you have a solution please thank you my version : Bootstrap 4.3, Angular version : 8 daypilot version : 2019.3.39...

warm-up and cool-down on Resource Calendar

Answered: The Calendar component now supports area.start and area.end properties for event active areas. These date/time values will be used to calculate the vertical position. It's available since version 201...

Resize of areas

Dear Dan, We have some questions regarding areas resize. We're using the warmup/cooldown example ( https://code.daypilot.org/82331/javascript-scheduler-warm-up-and-cool-down-time ) to define an event...

Bubble not showing up

Answered: You can specify the event bubble content using "bubbleHtml" property. Assigning new DayPilot.Bubble() to dp.bubble is not necessary (it uses an empty Bubble object by default). Example: dp.events.lis...