protected void Page_Load(object sender, EventArgs e) {EBCRequest EBCRequest = new EBCRequest(); var dataSource = EBCRequest.GetValidEBCRequest((int)Region.DBB); if (dataSource.Count > 0) { this.RadScheduler2.DataSource = dataSource; this.RadScheduler2.DataBind(); foreach (RequestModel request in dataSource) { RadScheduler2.AppointmentDataBound +=
new AppointmentDataBoundEventHandler(RadScheduler2_AppointmentDataBound); } this.RadScheduler2.ReadOnly = true; this.RadScheduler2.Rebind(); } if (!IsPostBack) { this.lblUserName.Text = this.LoginUser.FullName; } } void RadScheduler2_AppointmentDataBound(object sender, SchedulerEventArgs e) { if (e.Appointment.Resources.GetResourceByType("EventType") != null) { switch (e.Appointment.Resources.GetResourceByType("EventType").Text) { case "Plant tour Catawba": e.Appointment.BackColor = System.Drawing.Color.Blue; break; case "Plant tour Claremont": e.Appointment.BackColor = System.Drawing.Color.Yellow; break; default: break; } } }
How can i go in RadScheduler2_AppointmentDataBound while debugging?