Declined
Last Updated: 05 Aug 2022 18:56 by ADMIN
Zeno
Created on: 05 Aug 2022 06:13
Category: UI for Blazor
Type: Bug Report
1
Date picker placeholder issue

When user click into the date picker textbox, the placeholder value is changed to what's set to "format" for the date picker. For example, I have the following configured:

<TelerikTimePicker Placeholder="dd/mm/yyyy" Format="dd/MM/yyyy"></TelerikTimePicker>

 

The control will display "dd/mm/yyy" in the textbox, however, when user click into the textbox, the placeholder value changes to "dd/MM/yyyy".

 

 

1 comment
ADMIN
Dimo
Posted on: 05 Aug 2022 18:56

Hi Zeno,

Define a FormatPlaceHolder to control the "placeholder" in focused state.

<TelerikDatePicker Placeholder="dd/mm/yyyy" Format="dd/MM/yyyy" @bind-Value="@DateValue">
    <DatePickerFormatPlaceholder Day="dd" Month="mm" Year="yyyy"  />
</TelerikDatePicker>

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

Regards,
Dimo
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.