Hi I am using radscheduler on my .net application,
I wanted to apply different color on my appointments depending upon the customized status field ,
RadScheduler_ AppointmentDataBound is applying same color on all the appointmets.
Below is my code:
protected
void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
appointment = GetAppointments();
foreach (DataRow row in appointment.Rows)
{
statusValue = row["Status"].ToString();
switch (statusValue)
{
case "1":
e.Appointment.BackColor = Color.Blue;
break;
case "2":
e.Appointment.BorderColor = Color.Black;
break;
case "3":
e.Appointment.ForeColor = Color.DarkKhaki;
break;
default:
break;
}
}
}
Can you please help me on that ?
Thanks.