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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disable dates in datePicker

Thread ID:





145863 Jul 11,2019 06:53 AM UTC Jul 15,2019 11:25 AM UTC Vue 3
Tags: Gantt Chart
Tomasz Tomczykiewicz
Asked On July 11, 2019 06:53 AM UTC


Could you disable dates in datePicker when you edit dates in cell mode?

Best regards,
Tomasz Tomczykiewicz

Jesus Arockia Sankaran S [Syncfusion]
Replied On July 12, 2019 02:20 PM UTC

Hi Tomasz, 
We can disable dates in the datePicker component by using renderDayCell client-side event in the Gantt column edit inner property. In the given sample, we have disabled weekend dates. 
Please find the code example below. 
        <ejs-gantt ref='gantt' :dataSource="data" id="GanttContainer"> 
                <e-column field='StartDate' width='150' :edit='dpParams'></e-column> 
     dpParams: { params: 
        renderDayCell: function(args){ 
          if (args.date.getDay() === 0 || args.date.getDay() === 6) { 
            args.isDisabled = true; 
Please find the below sample link. 
Jesus Arockia Sankaran S 

Tomasz Tomczykiewicz
Replied On July 15, 2019 08:47 AM UTC

Thank, it's solved my problem.

Best regards,
Tomasz Tomczykiewicz

Jesus Arockia Sankaran S [Syncfusion]
Replied On July 15, 2019 11:25 AM UTC

Hi Tomasz, 
Thanks for your update. 
Jesus Arockia Sankaran S 


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

Live Chat Icon For mobile
Live Chat Icon