All Questions

dynamically set background

Answered: You can also change the background color of the grid cells, the mechanism is the same. Just use BeforeCellRender event handler: protected void DayPilotScheduler1_BeforeCellRender(object sender, DayPi...

No EventTapAndHoldHandling for Scheduler

Answered: It looks like this option was missing in the Scheduler by accident. It's now available in the latest sandbox build (2018.2.5945): https://mvc.daypilot.org/sandbox/Scheduler/ It will be included in th...

Import ics file

Answered: You'll need a library that handles iCalendar format to import an ics file. One of the free libraries available is DDay.iCal. It's used in the export tutorial for exporting the events to ics: https://...

Hourly rental and next reservation times

Answered: When event overlap protection is enabled ( https://doc.daypilot.org/scheduler/event-overlaps/ ) the Scheduler will block times with existing events. If you want to use this mechanism to block 5 minut...

All appointments shifted by 30 minutes

Hi, Somehow, all my appointments (and business starting hours) are shifted by 30 minutes (see attachment). What am I doing wrong/how can I fix it? Using: DayPilot Calendar, Version: 2018.1.228-lite I...

[?] Update Event client-site

Answered: After read some sample code, I know how to do. Instead of `e.client.moveEnabled = false; ` , it should be ` e.data.moveDisabled = false;` and after that, use ` dp.events.update(e).queue();` to update

Change color of some resource divider

Answered: Unfortunately the divider div is not part of the resource header element so you can't control it using resource properties. However, you can hide the default divider and use a bottom border of the ro...

Calendar stops working

Answered: Do you see any error in the JavaScript console? Does the whole page freeze (do other element on the page work) or is it just that the Calendar doesn't respond to mouse actions? I know that it might b...

How to get all events by Resource

Answered: Ben, You can get a list of all events like this: var events = dp.rows.find("A").events.all(); And delete them: dp.rows.find("A").events.all().forEach(function(e) { dp.events.remove(e); }); See also: ...

Reduce tree parent heights compared to children

Answered: The row height is derived from the event height (the total height is adjusted automatically to fit all events). You can specify custom event height for the parent rows using eventHeight property: htt...

Drag and select default (without holding shift key)

Answered: You can change the behavior using onGridMouseDown event handler: https://api.daypilot.org/daypilot-scheduler-ongridmousedown/ Example: dp.onGridMouseDown = function(args) { args.action = "RectangleSe...

Drag items off scheduler

Answered: At this moment, you can only drop the events on another Scheduler instance. There are two ways to approach this: 1. Use a context menu item (something like "Unschedule") to remove an event from the S...

Navigator Render error

Answered: hi thanks for your fix answer. JavaScript 2018.2.3281 and i use electron with Chromium 61.0.3163.100. thanks

Manual scale timeline with minutes

Answered: Henry, The time headers can use one of the group sizes defined here: https://doc.daypilot.org/scheduler/time-header-groups/ If you want to use a group size smaller than one hour you need to use group...

When create new event it shows wrong time

Answered: Dhiraj, How do you get the start/end dates of the selected range? The onTimeRangeSelect(ed) event handler returns DayPilot.Date object which uses the idealized time zone that the Calendar uses intern...