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

Scheduler Persist row (resource) moving

Asked by Jan
3 years ago.

Hi everybody
any of you have experience row/resource moving with some degree of persisting the new order (cookie, back-end profile...)?
Help would be much appreciated.
Greetings, Jan

Answer posted by Dan Letecky [DayPilot]
3 years ago.

You can take a look at the following tutorial to see how to handle row moving and persist the row order (in JavaScript/Node.js):

https://code.daypilot.org/95340/react-activity-planning-system-node-express-postgresql

The order is stored using two DB field (ordinal, ordinal_priority) and the reordering is done in two steps - first the row is inserted at the specified location and then the fields are compacted (spaces in ordinal values removed, duplicate ordinal values changed, and ordinal_priority made the same).

You can find the same logic implemented in PHP in this tutorial:

https://code.daypilot.org/93862/html5-gantt-chart

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.