protected override void ExecuteCore() { base.ExecuteCore(); if (Control.ActiveViewType == SchedulerViewType.Month) { Control.Start = DateTimeNavigationHelper.CalculateMonthFirstDate(Control.Start); } }
protected void Page_Load(object sender, EventArgs e) { if (ASPxScheduler1.ActiveViewType == SchedulerViewType.Month) { if (NeedDateCorrection(ASPxScheduler1.MonthView.GetVisibleIntervals())) { ASPxScheduler1.Start = DateTimeNavigationHelper.CalculateMonthFirstDate(ASPxScheduler1.Start); } } }
public void GoToDate(System.DateTime date, SchedulerViewType viewType) { if (UseBaseService()) { BaseService.GoToDate(date, viewType); return; } BaseService.GoToDate(date, viewType); Control.Start = DateTimeNavigationHelper.CalculateMonthFirstDate(date); }