How to customize X-Axis
10 years ago.
im using scheduler lite. i managed to display the rooms and room status on the vertical axis, and i want to set a different border color for specific room status. so on my BeforeResHeaderRender i try to do like this
string status = (string)e.DataItem["RoomStatus"];
switch (status)
{
case "Online":
e.CssClass = "status_Online";
break;
case "Offline":
e.CssClass = "status_Offline";
break;
}
but it dont let me use the e.CssClass and it also show an error "object not reference.." for the line string status = (string)e.DataItem["RoomStatus"];
DayPilot