Unplanned
Last Updated: 24 Feb 2023 14:06 by ADMIN
Softwarehouse
Created on: 08 Jan 2020 13:20
Category: DateRangePicker
Type: Feature Request
2
We would like no placeholders in DateRangePicker inputs

Dear Kendo Support Team,

When we use DateRangePicker, we would like to show empty inputs, if the values aren't set. (They're filled with date format placeholder by default.)
Is there any solution to hide the placeholder text?

Regards,
Peter

7 comments
ADMIN
Nikolay
Posted on: 24 Feb 2023 14:06

Hi Sten,

The DateRangePicker supports localization, however currently, translations are not available for every language and some of the localization files may be incomplete. This is a community-driven initiative and we would appreciate it if you can submit those translations.

Those messages could be updated by extending the localization files, as explained in this section of the documentation. The kendo.messages.da-DK.js contains the messages in Danish and may be used as a reference to extend the translated messages. 

If you would like to contribute to the improvement of the translation of widgets you can check this section for additional guidance.

Regards,
Nikolay
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

sjo-jb
Posted on: 17 Feb 2023 16:49

please adhere to rules regarding localization. It make no seens to use the component when placeholders are not localized.

 

ex when using culture da-DK the placeholder says "day-month-year". Definitely not pro.

ADMIN
Nikolay
Posted on: 12 Feb 2020 15:24

Hi Peter,

This thread is now converted to a feature request. I have added a vote from your behalf to it. Tracktion of its progress could be observed at the following link:

Kind regards,
Nikolay
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.
Softwarehouse
Posted on: 12 Feb 2020 08:49

Dear Nikolay,

plese turn this to a feature request.

Thanks,
Peter

ADMIN
Nikolay
Posted on: 21 Jan 2020 11:06

Hi Peter,

By nature, the date range picker differs from the date picker. It utilizes the Kendo DateInput and therefore at this point this behaviour can not be achieved. 

However, if you would like we could convert this thread to a feature request. The most popular ones are considered for implementation in the planning process.

Let me know if I could be of any help.

Regards,
Nikolay
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.
Softwarehouse
Posted on: 20 Jan 2020 10:58

Dear Kendo Support Team,

If we use your solution, we lose date masking:

Edited example: https://dojo.telerik.com/OZeBekAM/2


Use cases working in the TimePicker input:

  • If I delete its content, it shows an empty textbox.
  • If I write 10/10/2011 into it, it sets the TimePicker.
  • If I write 10/10/20111 into it, it corrects to 10/10/2011 and sets the picker.

We would like to achieve the same behavior in the DateRange inputs.

Regards,
Peter

ADMIN
Nikolay
Posted on: 09 Jan 2020 11:43

Hi,

Internally, the DateRangePicker uses the Kendo DateInput. The placeholder comes from the date input which restricts the input of the user. At this point, the widget has no date input configuration exposed. However, you could remove them by destroying the date inputs:

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

This could be found shown at the following Dojo demo: https://dojo.telerik.com/OZeBekAM

Let me know if you have any questions.

Regards,
Nikolay
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.