Ok, nevermind I just used the function I wrote before:
protected override void OnBeforeCellRender(BeforeCellRenderArgs e)
{
if ((e.Start.DayOfWeek == DayOfWeek.Saturday || e.Start.DayOfWeek == DayOfWeek.Sunday)
|| (e.Start.Hour >= 7 && e.Start.Hour < 23))
{
e.IsBusiness = true;
}
}
protected override void OnIncludeCell(IncludeCellArgs e)
{
if ((e.Start.DayOfWeek == DayOfWeek.Saturday || e.Start.DayOfWeek == DayOfWeek.Sunday) && (e.Start.Hour >= 7 && e.Start.Hour < 23))
{
e.Visible = true;
}
}