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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Keep time format when typing in the timepicker input field

Thread ID:

Created:

Updated:

Platform:

Replies:

148322 Oct 15,2019 02:12 PM UTC Oct 16,2019 11:16 AM UTC JavaScript - EJ 2 1
loading
Tags: TimePicker
Pieter-Jan Batsleer
Asked On October 15, 2019 02:18 PM UTC

Hi,

I am using the ejs.calendars.TimePicker component with the following properties:

     value: new Date('1/1/2018 08:00'),
     format: 'HH:mm',
     step: 15,
     change: calculateTotalHours,
     width: '50%'

It is possible to type in different values (for example: 999999) while this is not possible in the TimePicker in the ASP.NET Core example. You can only type in valid values. I want to stop the user from typing in wrong values and automatically add the ":" as I was using an input mask. I tried setting the type of the input field to type="time", but then the styling is messed up and Firefox adds a "clear" button. The left timepicker has this type="time", the right doesn't, but the user can add everything when typing.


Is it possible to only allow "time"-values when typing in the timepicker?

Thanks!

Sureshkumar P [Syncfusion]
Replied On October 16, 2019 11:16 AM UTC

Hi Pieter, 

Greetings from Syncfusion support. 

We have already considered to provide mask support for the TimePicker component at our end and this support will be included in any one of our upcoming releases. We will implement the feature based on the customer request count and priority.  

You can track the status of the requested requirement from the below feedback link. 


Also, if you are facing any issues from your end please share the issue reproducing sample that will help us to check and procced further. 

Regards, 
Sureshkumar P 


CONFIRMATION

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