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
2 years 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]
2 years 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" }
];
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.