I'm trying to find a way to change the background colour of a row/cell.
Currently, our asset booking system looks like late-current.gif - whereas the red highlighted booking indicates that that resource it is overdue and hasn't been returned. What is required is for the whole row of the timeline to turn red if the asset is overdue, as indicated in late-required.gif.
The appointments change colour using the following code:
protected
void
RadScheduler1_AppointmentDataBound(
object
sender, SchedulerEventArgs e)
{
DateTime now = DateTime.Now;
if
(e.Appointment.Resources.GetResource(
"Status"
, 1) !=
null
)
e.Appointment.CssClass =
"rsCategoryOrange"
;
And I was trying to do something similar to change the entire row background.
Note: all the resources are populated from the database and are not hardcoded.
Any ideas anyone?