Hello,
I would like to use new feature mentioned in release notes of version "DayPilot Pro for ASP.NET MVC 8.4" - Active areas supported in Calendar/OnBeforeCellRender
Unfortunately I am not able to create any visible areas in calendar cell. I am using the same feautre in scheduler component without any problems.
My approach is simple:
protected override void OnBeforeCellRender(BeforeCellRenderArgs e)
{
var currentLocalTime = appContext.CurrentLocalTime;
if (e.Start < currentLocalTime)
{
var area = new Area();
area.Start(e.Start);
area.End(currentLocalTime);
area.CssClass("some_class_with_red_background");
area.Left(0);
area.Right(0);
area.Visible();
e.Areas.Add(area);
}
}
But no areas are visible after calendar is rendered. Am I doing something wrong? Can you please confirm that it is working?
Thanks for your reply!