Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Individual calendar day cell styling removed after select any date dynamically
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/calendar_renderdaycell-1558934840
Replication procedure:
1. Run the above sample.
2. Some days are styled with background color.
3. Click on any date.
4. Actual: Already applied background styles are removed for all cells.
5. Expected: The individual cell style should not be removed
@using Syncfusion.Blazor.Calendars
<SfCalendar TValue="DateTime?" WeekNumber="true" FirstDayOfWeek="1" Value="@SelectedValue">
<CalendarEvents TValue="DateTime?" OnRenderDayCell="OnRenderDayCell"></CalendarEvents>
</SfCalendar>
@code {
public DateTime? SelectedValue { get; set; } = DateTime.Now;
public void OnRenderDayCell(RenderDayCellEventArgs args)
{
if (args.Date.DayOfWeek.ToString() == "Monday")
{
args.CellData.ClassList += " specialDay";
}
}
}
<style>
.specialDay {
background-color: red;
}
</style>