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
close icon

"Intuitive" input in DateTimeEdit

Hi, 

I am using the Datetimeedit component and I have a little question.

My DateTimeEdit has a custom pattern to display only hours and minutes (HH:mm) and I try to retrieve a behavior I had with a previous winform component. 

When I do a '915' input, I would like to get '9:15' in my DateTimeEdit, but I get '915:00' that become '00:00' because of the pattern.

Is there a way to get this behavior ? Maybe I have to use an other component such as SfMaskedEdit or something else?

Thank you for the answer,

Regards,

Marvin

3 Replies

DR Durga Rajan Syncfusion Team March 2, 2016 12:32 PM UTC

Hi Marvin,

Thank you for contacting Syncfusion Support

We suspect that you are using CanEdit of DateTimeEdit as true from your side. So that the typed text "915"(without
time separators) is considered as invalid and reset to 00:00. We suggest you to set CanEdit as false and use the
TAB key or Navigation arrows for navigating to next input field if single digit is entered. We have prepared a
sample for the same and you can download it from the following link:

Sample Link:
Sample


Please let us know if you need further assistance on this.

Regards,
Durga S


AD Atlante Dev Team March 3, 2016 08:05 AM UTC

Hi,

Thank you for the answer. That is the solution we will use.

Regards,

Marvin


VJ Victory Jessie Selvam D Syncfusion Team March 3, 2016 11:48 AM UTC

Hi Marvin,

Thank you for your update.

Please let us know if you need any other assistance.

Regards,
Jessie

Loader.
Live Chat Icon For mobile
Up arrow icon