We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.


Thread ID:





80357 Mar 31,2009 12:50 PM Apr 1,2009 07:00 AM Windows Forms 1
Tags: Tools
Wil Burton
Asked On March 31, 2009 12:50 PM

Is there anyway to restrict the dates that are selected? For example, I want to make it so that you can only select Mondays on the calendar.

Administrator [Syncfusion]
Replied On April 1, 2009 07:00 AM

Hi Wil Burton ,

Thank you for using Syncfusion products.

Yes you can restrict the dates that are selected. If you want to allow the user to select only Mondays on the calendar, you can set Clickable property to false for other days except Monday using DateCellQueryInfo event handler.

The following code snippet used for this.


void monthCalendarAdv1_DateCellQueryInfo(object sender, DateCellQueryInfoEventArgs e)
// if not Monday
if (e.ColIndex != 2)
e.Style.Clickable = false;
e.Style.Enabled= false;

Please let me know if this helps you.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.