limit start and end date in scheduler

I am trying to initialize the scheduler, but I only want too see it initialed between the dates of
start date - 14 days before today
end date - 42 days after today.

I don’t want to be able to scroll to dates after or before that time frame.

The problem is you can press the next and previous buttons all the way to 2025 or what ever you please.

How can I limit the time range displayed in the scheduler?

Hi,
You can limit available dates when onBeforeViewChange event fires. Check the new date before the user changes the displayed date and block view change according to your requirements.
Demo: snippet.dhtmlx.com/f99a90df7

Thank you!