Declined
Last Updated: 20 Jan 2022 15:37 by ADMIN
improwise
Created on: 15 Jan 2022 16:26
Category: UI for Blazor
Type: Bug Report
1
DatePicker shows format string when no value is selected.

DatePicker shows format string when no value is selected. If you have a form a DatePicker bound to a nullable DateTime, it will show the formatting string when no value is selected, instead of just showing an empty box.  This is very confusing to the end user compared to just an empty box. We have not found a way to change this.

 

1 comment
ADMIN
Dimo
Posted on: 20 Jan 2022 15:37

Hello Patrik,

You can set the PlaceHolder to be a space and make it invisible when the empty textbox has no focus. Alternatively, set a FormatPlaceholder that will be more understandable for the users. Finally, you can do both.

<TelerikDatePicker Value="@Value" Placeholder=" ">
    <DatePickerFormatPlaceholder Year="year" Month="month" Day="day" />
</TelerikDatePicker>

@code {
    DateTime? Value { get; set; }
} 

I am marking this bug report as declined, as the behavior is by design.

Regards,
Dimo
Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!