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.

Disable list of dates

Thread ID:





128887 Feb 14,2017 08:23 AM Feb 15,2017 08:11 AM ASP.NET Core 1
Tags: DatePicker
Asked On February 14, 2017 08:23 AM

I read an article about disabling the weekends in the DatePicker with javascript, was wondering if there is any way of disabling a list of dates?

sureshkumar.P [Syncfusion]
Replied On February 15, 2017 08:11 AM

Hi Keith, 

Thank you for contacting Syncfusion Support, 

Yes, we have an option to disable a list of dates in datePicker control. You will achieve your requirement by using “blackoutDates” property. Here we have mentioned a list of date with array of objects and array of strings format. Please find the documentation link to know more about the “blockoutDates” property. Refer to the following link https://help.syncfusion.com/api/js/ejdatepicker#members:blackoutdates  
For your convenience, we have created one simple sample with your requirement in jsplayground. Please refer the JSPlayground link: http://jsplayground.syncfusion.com/eaznrzzm  

Sureshkumar P 


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.