Hi
Julian,
You
can set the background color for the weekends in the timeline views by
overwriting the default CSS with the cellcustomclass in the OnRenderCell
event like the below code snippet.
|
public void OnRenderCell(RenderCellEventArgs args)
{
DateTime
cellDate = args.Date;
int weekDay
= (int)cellDate.DayOfWeek;
if (weekDay
== 0 || weekDay == 6)
{
args.CssClasses = new List<string>(CellCustomClass);
}
}
|
|
<style>
.e-schedule .e-timeline-month-view .e-work-cells:not(.e-work-days) {
background-color: darkred;
}
.e-schedule .e-timeline-view .cell-custom-class {
background-color: yellowgreen !important;
}
</style>
|
Kindly
try the attached sample and let us know if this meets your requirement.
Regards,
Ruksar Moosa Sait
Attachment:
CustomCssWeekendsTimelineView_25fd1e86.zip