BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Mateus,
Thank you for using Syncfusion products,
The reported requirement of disabling the dates in
DateTimePickerAdv can be achieved by handling the DateCellQueryInfo event of
calendar as shown in the below code snippet.
Code snippet[C#]:
void Calendar_DateCellQueryInfo(object
sender, Syncfusion.Windows.Forms.Tools.DateCellQueryInfoEventArgs
e) {
// This event enables user to customize
MonthCalenderAdv DateCells
if (e.RowIndex == 3 && e.ColIndex
> 6)
{
e.Style.BackColor = Color.Snow;
e.Style.Enabled = false;
}
else
{
// To set selectable Date cells BackColor
e.Style.BackColor = Color.FromArgb(13,
134, 64);
} } |
We have also prepared a sample and it can be downloaded from
the following link:
Sample link: http://www.syncfusion.com/downloads/support/directtrac/131842/datetimepicker695623093.zip
Please let us know if you need further assistance,
Regards,
Ashwini
Hi Mateus,
Thank you for the update,
Please let us know if you need further assistance.
Regards,
Ashwini