I was trying to change the classlist of a cell when it renders. To do this, I tried using the following code:@page "/CalendarTest"
@using Syncfusion.Blazor.Calendars
<SfCalendar TValue="DateTime?" @bind-Value="Date">
<CalendarEvents TValue="DateTime?" OnRenderDayCell="onRenderDayCellHandler"></CalendarEvents>
</SfCalendar>
@code{
DateTime? Date = DateTime.Today;
public void onRenderDayCellHandler(RenderDayCellEventArgs args)
{
args.CellData.ClassList += " test";
}
}
However, when navigating to "/CalendarTest", the program uses a bunch of Memory(rising to over 2GB) and never loads. This happens no matter what I put inside of "onRenderDayCellHandler". It happens whenever you assign a function to CalendarEvents's OnRenderDayCell parameter. I have attached a file with the minimum code in it to reproduce the bug.
I am using .Net 5, and the latest Syncfusion Blazor version (18.4.0.46)