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.
Is there any way to make the navigation calendar's date bold when an item is scheduled for that day? Similar to Outlook’s Calendar when a appointment is scheduled?
ADAdministrator Syncfusion Team July 20, 2007 10:37 PM UTC
There is no built-in support for this currently. But you can try doing it through the underlying grid's PrepareViewStyleInfo event handle. In the Recurrence sample we ship, you can add this code at the bottom of Form.Load to subscribe to the event. this.scheduleControl1.Calendar.CalenderGrid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(CalenderGrid_PrepareViewStyleInfo);
Then in the event handler, you can use this code: void CalenderGrid_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { DateTime dt; if (e.Style.Text.Length > 0 && DateTime.TryParse(e.Style.Text, out dt)) { GridControl grid = sender as GridControl; IScheduleDataProvider dataProvider = this.scheduleControl1.DataSource; IScheduleAppointmentList list = dataProvider.GetScheduleForDay(dt); if (list.Count > 0) { e.Style.Font.Bold = true; } } }