Possibility to disable time

Hello is there a possibility to disable Time in selection of dateTimePicker?

I found only date disable possibility and am searching for something like
private void DisableDate(RenderDayCellEventArgs args, RenderTimeCellEventArg timeArgs).

Thank you



3 Replies

DR Deepak Ramakrishnan Syncfusion Team December 1, 2021 05:50 PM UTC

Hi Fillip, 
 
Greetings from Syncfusion support. 
 
We have Max and Min property  to restrict the certain time based on the date selection . Also we can restrict the displaying of time in the input by using Format property with date co-ordinates alone. Kindly refer the below demo for your reference. 
 
 
 
If the above does not meet your requirement kindly provide the usecase for the requirement or let us know if you need to disable specific time values to restrict the user to select it. Based upon the details we will proceed further. 
 
Thanks, 
Deepak R. 



FI Filip December 13, 2021 06:21 AM UTC

Hello, 

it is not what I need.

The use-case is following:

I want to create a reservation system, where the user is able to select the date and time of reservation. I don't want to show user times that are already reserved. 

So first, the user will see the possible dates he can choose and after clicking on a specific date, the reservations on that date will be fetched from BE and reserved times disabled on FE.

Hope the description is understandable. Is there a way how to achieve this?

Thank you



DR Deepak Ramakrishnan Syncfusion Team December 14, 2021 12:46 PM UTC

We have already considered the reported requirement “Restrict the time selection in the DateTimePicker component”  as feature at our end and this support will be included in any one of our upcoming releases. At the planning stage for every release cycle, we review all open features, and this will be included in any of our upcoming future releases. You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link:    
    
  
Please cast your vote to make it count. We will prioritize the features every release based on the demands. If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal. 


Loader.
Up arrow icon