This is a migrated thread and some comments may be shown as answers.

"day-month-year" label/placeholder

1 Answer 1584 Views
DateRangePicker
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Morten asked on 28 Sep 2019, 07:48 PM

Hello support.

When the calendars are visible and the first selection (start date) is made a "day-month-year" label/placeholder is displayed in the end date input field (see screenshot).

Is this text customizable? Or can it be set to not display?

Best regards

Morten

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 01 Oct 2019, 11:57 AM

Hi Morten,

Internally the date range picker uses the Kendo DateInput. The placeholder comes actually from the date input which restricts the input of the user. Unfortunately, at this point the date range picker has no dateInput configuration exposed and customizing the messages is not possible at this point.

However, you could remove them by destroying the dateInputs. 

e.g.

          picker._startDateInput.destroy();
          picker._endDateInput.destroy();
          picker._startInput.val('');
          picker._endInput.val('');

Below you will find a sample which demonstrates the above approach:

I hope this helps.

Regards,
Georgi
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DateRangePicker
Asked by
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Georgi
Telerik team
Share this question
or