Our pure JavaScript Scheduler component


Post by markus »

Hi,

We're using Scheduler Pro and I would like to define an area where events/tasks may be dragged, whereas outside of that area they may not.

My approach would be to visualize that area using a TimeSpan and to use the onBeforeEventDrag callback to decide if an event may be moved or not.

However I see 2 issues:

  • the title of the TimeSpan hides the 2nd header line (month/week/day is displayed); I'd like to keep that. Is it possible?
  • I'd like to make the end of the TimeSpan infinite - is that possible?

Thanks
Markus


Post by marcio »

Hey Markus,

The approach that you suggested sounds correct, with the validation using the onBeforeEventDrag event.

  • Could you please share a screenshot/recording of what you see in the header? What do you mean by the title of the TimeSpan?

  • It's not possible. As we use a defined endDate to render the Scheduler, but you can try to use a long date range to display the TimeSpan

Best regards,
Márcio


Post by markus »

Yes - here's the screenshot. During the TimeSpan, the days are not visible anymore...

https://paste.pics/b9ef5e79c7c8778fcf494725dd971d70


Post by mats »


Post by markus »

Yes, perfect, that's what I needed, thanks.


Post Reply