hi
How do I do a foreach loop in the RadScheduler ItemDataBound event?
I have a code here would like to have a lightGray background color if the class end time is lesser than current time and i would like to loop through each item so that gray out the correct items. Thanks
protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
DataRowView row = (DataRowView)e.Appointment.DataItem;
DateTime endtime = DateTime.Parse(row["ClassEndTime"].ToString());
if (endtime <= DateTime.Now)
{
e.Appointment.BackColor = System.Drawing.Color.LightGray;
}
}