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

Move events on drag with blocks of 12 hours

Asked by Albert
1 month ago.

When I move horizontally an event, it moves cell by cell (got day zoom). I want to move the events in blocks of 12h instead of 24h. Is this even possible?

Kind regards

Answer posted by Dan Letecky [DayPilot]
1 month ago.

Yes, please take a look at the following tutorial:
https://code.daypilot.org/39403/javascript-scheduler-customized-snap-to-grid

Another option would be to change the cell duration to 12 hours using the following settings:

dp.scale = "CellDuration";
dp.cellDuration = 720;

You can use 12-hour cells and still display days in the time header:

dp.timeHeaders = [
  { groupBy: "Month", format: "MMMM yyyy"},
  { groupBy: "Day", format: "d" }
];
New Reply
This reply is
Your name (optional):