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.
I was wondering if it's possible to trap the DateCellQueryInfo event from a GridGroupingControl? I have a couple of columns that are of the MonthCalendar type, and I'd like to trap this event so that I can remove all dates prior to the current date from the calendar. For a regular MonthCalendarAdv control I have something like:
ADAdministrator Syncfusion Team November 9, 2006 11:55 AM UTC
Hi Michael,
The Grid's MonthCalendar celltype implements the System.Windows.MonthCalender control in DropDownContainer of the cell. It doesn't implement the Syncfusion.Windows.Tools.MonthCalendarAdv control in a DropDownContainer of the cell. You can use the GridDropDownMonthCalendarCellRenderer to acess the MonthCalendar control in a cell. Here is a code snippet
GridDropDownMonthCalendarCellRenderer cr = this.gridGroupingControl1.TableControl.CellRenderers["MonthCalendar"] as GridDropDownMonthCalendarCellRenderer; foreach(Control c in cr.DropDownContainer.Controls) { if( c is MonthCalendarAdv ) { MonthCalendar cCalendar = c as MonthCalendar; //you can use the any event from here.... //cCalendar.DateChanged.... } }
If you want to implement the MonthCalendarAdv control in a cell, you need to create the custom celltypes. Please try the attached sample which implements the MonthCalendarAdv in a cell and let me know if you are looking something different.
Here is a sample. http://www.syncfusion.com/Support/user/uploads/DateTimeCell_3cebccd9.zip