Completed
Last Updated: 06 Mar 2023 10:01 by ADMIN
Release 4.1.0 (15/03/2023)
Chuck
Created on: 22 Feb 2023 23:03
Category: DateInput
Type: Bug Report
0
Invalid (empty) display when DateInput or TimePicker is bound to 12:00 AM

Using Telerik Blazor 4.0.1.  Previously on 3.5.0, there were no issues.  The only other difference is .NET 7.0.

 

Create a blank Telerik Blazor Server project and use the attached index.razor.  In the OnInitialized, there are two lines that set the DateTime.  The first one works but the second one results in the TelerikDateInput field showing h:mm AM instead of 12:00 AM.

 

Am I doing something wrong?  If so, what changed from 3.5 to experience this?

 

Thanks,

 

Chuck

 

Attached Files:
2 comments
Chuck
Posted on: 27 Feb 2023 17:44

Hey Dimo,

 

Thanks for the update.  The way I store this value is simply hh:mm, so that's what I get back from my calls.  I found that adding :01 to the end (for 1 second) also got the data to display properly.

 

Just glad to know at this point I wasn't doing something wrong.

 

Thanks,

 

Chuck

 

ADMIN
Dimo
Posted on: 27 Feb 2023 12:24

Hi Chuck,

Indeed, this looks like a regression. Please excuse us for the trouble.

I am converting your forum thread to a public bug report and we will try to address this with higher priority.

Probably, the problem is related to the revamped typing experience.

A possible workaround is to set the DateInput Value in OnAfterRenderAsync with a delay. I hope this is feasible in your case. Another options are to include the date in the format, or use another date and not today's. I agree these may not be acceptable in some scenarios.

Regards,
Dimo
Progress Telerik

Learn about the important changes coming in UI for Blazor 4.0 in January 2023!