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
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.
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.
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
Dear Nikolay,
plese turn this to a feature request.
Thanks,
Peter
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
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:
We would like to achieve the same behavior in the DateRange inputs.
Regards,
Peter
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