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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disable list of dates

Thread ID:





128887 Feb 14,2017 01:23 PM UTC Feb 15,2017 01:11 PM UTC ASP.NET Core 1
Tags: DatePicker
Asked On February 14, 2017 01:23 PM UTC

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 01:11 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon