Hello,
How Can I prevent event moving between two resources?
Let's suppose that I have a resource id (1)
if (args.e.resource() == 1 && args.newResource == 1){ //do the moving }
The problem is that args.e.resource() takes the resource id of the destination, so when I move the event into resource 1 it'll always work.
You should set .moveVDisabled property of the event to true:
http://doc.daypilot.org/scheduler/limit-event-moving/
You can do it directly in event data object or using onBeforeEventRender event handler.
Thank you, that solved my question. Besides start, end, id, resource, text, toolTip, backColor, moveVDisabled, moveHDisabled what other properties I can set?
You can find the list of supported properties here:
http://api.daypilot.org/daypilot-event-data/