Hi,
I've the problem that the background color is set in the codebehinnd, but isn't changed in the view.
What's wrong with my implementation?
The backgroundcolor is "#FFB612" and it will be changed to "#CCDC00". But I still see the "#FFB612" color in my browser.
See code:
public void _dayPilotScheduler_BeforeEventRender(object sender, BeforeEventRenderEventArgs e)
{
e.ToolTip = "Move over for more information";
e.EventClickEnabled = true;
// get column
var foundSchedule =
Schedules.Find(
schedule => (schedule.UniqueID.ToString() == e.Value));
if (foundSchedule != null)
{
switch (foundSchedule.ScheduleApplicationStatus)
{
case eScheduleApplicationStatus.BroadcastInFuture:
e.BackgroundColor = "#FFB612";
break;
case eScheduleApplicationStatus.Inactive:
e.BackgroundColor = "#FFB612";
break;
case eScheduleApplicationStatus.Error:
e.BackgroundColor = "#D0103A";
break;
case eScheduleApplicationStatus.BroadcastingNow:
e.BackgroundColor = "#CCDC00";
e.DurationBarColor = "#CCDC00";
break;
}
e.DurationBarColor = "#FFFFFF";
e.InnerHTML = string.Format("{0} - {1} - {2}", foundSchedule.ApplicationID,
foundSchedule.ApplicationTitle, foundSchedule.TargetName);
}
e.EventRightClickEnabled = false;
}
Kind regards,
Rob