how to change scheduler startdate when view changes

Say I have Timeline and Day View, if I move from day1 to day2 on Day View and then I click on Timeline View, it’ll start from day2 too. I want my Timeline View to always start from day1. Is that possible?


you can change date with onBeforeViewChange event:scheduler.attachEvent("onBeforeViewChange", function(old_mode, old_date, mode , date){ if(mode == "timeline" && old_mode == "day"){ scheduler.updateView(day1, "timeline") return false; } return true; }); … viewchange

That works for me. Thanks!