How do I pass RadScheduler_CellFormatting Telerik.WinControls.UI.SchedulerCellEventArgs in radSchedulerNavigator_NavigateForwardsClick?
private void radSchedulerNavigator1_NavigateBackwardsClick(object sender, EventArgs e)
{
this.radCalendar1.FocusedDate = this.radScheduler1.ActiveView.StartDate;
string time_Nback1 = "";
string time_Nback2 = "";
if (radScheduler1.ActiveViewType == SchedulerViewType.Day)
{
SchedulerDayView dayView_ck = this.radScheduler1.GetDayView();
time_Nback1 = dayView_ck.StartDate.ToString("yyyyMMdd");
time_Nback2 = dayView_ck.EndDate.ToString("yyyyMMdd");
}
else if (radScheduler1.ActiveViewType == SchedulerViewType.Week)
{
SchedulerWeekView weekView_ck = this.radScheduler1.GetWeekView();
time_Nback1 = weekView_ck.StartDate.ToString("yyyyMMdd");
time_Nback2 = weekView_ck.EndDate.ToString("yyyyMMdd");
}
else if (radScheduler1.ActiveViewType == SchedulerViewType.Month)
{
SchedulerMonthView monthView_ck = this.radScheduler1.GetMonthView();
time_Nback1 = monthView_ck.StartDate.ToString("yyyyMMdd");
time_Nback2 = monthView_ck.EndDate.ToString("yyyyMMdd");
}
boundradschedulerview("001", time_Nback1, time_Nback2);
dtHoilday = boundAppointmentObj.listDoctorOffTime("001", time_Nback1, time_Nback2);
radScheduler1_CellFormatting(sender, (Telerik.WinControls.UI.SchedulerCellEventArgs) e);
}
private void radSchedulerNavigator1_NavigateBackwardsClick(object sender, EventArgs e)
{
this.radCalendar1.FocusedDate = this.radScheduler1.ActiveView.StartDate;
string time_Nback1 = "";
string time_Nback2 = "";
if (radScheduler1.ActiveViewType == SchedulerViewType.Day)
{
SchedulerDayView dayView_ck = this.radScheduler1.GetDayView();
time_Nback1 = dayView_ck.StartDate.ToString("yyyyMMdd");
time_Nback2 = dayView_ck.EndDate.ToString("yyyyMMdd");
}
else if (radScheduler1.ActiveViewType == SchedulerViewType.Week)
{
SchedulerWeekView weekView_ck = this.radScheduler1.GetWeekView();
time_Nback1 = weekView_ck.StartDate.ToString("yyyyMMdd");
time_Nback2 = weekView_ck.EndDate.ToString("yyyyMMdd");
}
else if (radScheduler1.ActiveViewType == SchedulerViewType.Month)
{
SchedulerMonthView monthView_ck = this.radScheduler1.GetMonthView();
time_Nback1 = monthView_ck.StartDate.ToString("yyyyMMdd");
time_Nback2 = monthView_ck.EndDate.ToString("yyyyMMdd");
}
boundradschedulerview("001", time_Nback1, time_Nback2);
dtHoilday = boundAppointmentObj.listDoctorOffTime("001", time_Nback1, time_Nback2);
radScheduler1_CellFormatting(sender, (Telerik.WinControls.UI.SchedulerCellEventArgs) e);
}