The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hello,
I am trying to extend the MonthCalendarExt control by deriving from it and make a certain date to be bold with color. What I did is I override the OnDateCellQueryInfo method. The Color shows up fine, but any changes to the e.Style.Font object didn''t apply.
The code is more or less like below.
protected override bool OnDateCellQueryInfo(DateCellQueryInfoEventArgs e)
{
if (e.DateValue != null && !e.IsOutsideRange)
{
if (((DateTime)e.DateValue).Day > 27)
{
e.Style.TextColor = Color.Green;
e.Style.Font.Bold = true;
}
}
return true;
}
Is there any extra steps that I need to do?
Thanks.
ADAdministrator Syncfusion Team April 15, 2005 10:45 PM UTC
Hi Kay,
Unfortunately, we''re unable to support MonthCalendarExt as it''s obsolete and has been replaced with MonthCalendarAdv.
I''ve checked tested code in our latest version (3.2) and both the colors and the Bold style seem to be working in MonthCalendarAdv. I would recommend upgrading once our final release of v3.2 is released.
Regards,
Gregory Austin
Syncfusion Inc.