This is a migrated thread and some comments may be shown as answers.

Timepicker min time

1 Answer 223 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Tanmaya
Top achievements
Rank 1
Tanmaya asked on 25 Feb 2020, 02:51 AM

Hi,

 

Is there a way to continuously listen to system's time and set the min time for the timepicker. I did try to create a function :

getMin () {

return new Date()

 

min = 'getMin()' -- property

 

In angular. But it just doesn't even render the timepicker. Infact it slows down my application

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 26 Feb 2020, 03:08 PM

Hello Tanmaya,

Binding the min property to a function would result in setting the corresponding property on each change detection cycle on the page. This is unneeded an it could indeed result in performance issues as well. 

An alternative is to set the min only on specific events - e.g. when the component is focused, or when the popup opens. Refer to this example.

Let me know if this would work for you.

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DateTimePicker
Asked by
Tanmaya
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or